Hello,
I have an object that moves in x-z plane and rotate about its Y axis. I want to obtain its rotation angle around the Y axis. So, I use sim.getObjectOrientation() function and use the second element of its output as the rotation angle of the object. However, this value is between -90 to 90 degrees. Is there a function to give me the rotation angle of the object around the Y axis as a number between [0, 360]?
Thank you.
Getting Rotation Angle in Planar Motion
Re: Getting Rotation Angle in Planar Motion
I couldn't reproduce your issue.
sim.getObjectOrientation returns angles in -180...180 deg range.
Try using a different reference frame, or measure angle on another axis, e.g. Z
sim.getObjectOrientation returns angles in -180...180 deg range.
Try using a different reference frame, or measure angle on another axis, e.g. Z