rapier.js icon indicating copy to clipboard operation
rapier.js copied to clipboard

How to interpret target position of configureMotorPosition method?

Open wycongwisc opened this issue 2 years ago • 2 comments

I'm trying to set the motor position of a revolute joint but am not sure what the targetPos argument should be. It doesn't seem to radians or degrees and its not mentioned in the documentation. Any help would be appreciated, thanks.

wycongwisc avatar Jul 05 '22 19:07 wycongwisc

Lets say you have a wall clock, where the arrow is joined with the clock face with the revolute joint. The target position is a number (radians? can't recall actually) which represents the angle of the arrow or what time it shows.

LeXXik avatar Jul 05 '22 19:07 LeXXik

These are the orientations when targetPos is set to 0, Pi/2, Pi, 3*Pi/2 and 2*Pi respectively (you are seeing two rigid bodies on top of each other, with a revolute joint on the y-axis between them). Any idea why it would look like this? image image image image image

wycongwisc avatar Jul 05 '22 20:07 wycongwisc