Rotation stops at 90°

Typically: "How do I... ", "How can I... " questions
Post Reply
xanobis
Posts: 3
Joined: 10 Apr 2018, 09:59

Rotation stops at 90°

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Rotation stops at 90°

Post by coppelia »

Hello,

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

Cheers

Post Reply