Search found 4 matches

by Virloria
16 Feb 2018, 16:21
Forum: General questions
Topic: how to set y vector up when importing mesh from a script
Replies: 3
Views: 26

Re: how to set y vector up when importing mesh from a script

Hello, Thanks, but I didn't manage to rotate my mesh with multiplyVector. Instead I used setObjectOrientation : FloatWA eulerAngles = new FloatWA(3); eulerAngles.getArray()[0] = (float)Math.PI/2; eulerAngles.getArray()[1] = 0f; eulerAngles.getArray()[2] = -1*(float)Math.PI/2; vrep.simxSetObjectOrien...
by Virloria
13 Feb 2018, 12:28
Forum: General questions
Topic: how to set y vector up when importing mesh from a script
Replies: 3
Views: 26

how to set y vector up when importing mesh from a script

Hi,
When importing a mesh from the File menu, the dialog box offers me to set the mesh orientation by choosing if y or z vector should be up. How can I specify the mesh orientation when I import a mesh from a script using the simImportMesh function?
Virloria
by Virloria
29 Nov 2017, 14:36
Forum: General questions
Topic: how to automatically make imported shapes respondable
Replies: 2
Views: 178

Re: how to automatically make imported shapes respondable

That solved my problem.
Thanks for your help!
by Virloria
28 Nov 2017, 21:55
Forum: General questions
Topic: how to automatically make imported shapes respondable
Replies: 2
Views: 178

how to automatically make imported shapes respondable

Hello I'm trying to import shapes from an .obj file into my simulation using the following code: vertices,indices,reserved,names=simImportMesh(0,"/simul/map.obj",0,0.0001,1) if (vertices) then for i=1,#vertices,1 do h=simCreateMeshShape(2,20*math.pi/180,vertices[i],indices[i]) simSetShapeColor(h,"",...