Page 1 of 1

Rotation stops at 90°

Posted: 13 Apr 2018, 08:42
by xanobis
Hello,

i'm learning the basics of Vrep and found something i doesn't understand.
Hope someone can help me.
I have an Dummy and i'm only want to rotate this Dummy around one axis.

This rotates the Dummy unlimited around the x-Axis

function sysCall_actuation()
handle=sim.getObjectHandle('Dummy')
local orientation=sim.getObjectOrientation(handle,-1)
orientation[1]=orientation[1]+0.001
sim.setObjectOrientation(handle,-1,orientation)
end

change the
orientation[1]=orientation[1]+0.001
to
orientation[2]=orientation[2]+0.001

the Dummy rotates around y-Axis but stops at 90°

with
orientation[3]=orientation[3]+0.001
it rotates around z-Axis unlimited

Why it doesn't work unlimited around the y-axis?

Thank you

Re: Rotation stops at 90°

Posted: 16 Apr 2018, 06:50
by coppelia
Hello,

this is how Euler angles work (check the section Signs and ranges).

Cheers