Jump to content
  • Advertisement
Sign in to follow this  

making sense of physx joint drives

This topic is 3935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm wondering if anyone here has actually used joint drives in the physx engine and can help me out with this problem. I'm trying to set the joint orientation with setDriveOrientation to a quaternion in the global frame, but everything I set it to seems to give me completely illogical results. the default orientation(identity quaternion) drives the joint in the direction of the first actors joint axis. So if I have a quaternion of the joint axis and I set the drive orientation as the inverse of that quaternion, the debug renderer shows the axis of the joint drive to be facing straight up, as in an orientation of 0(identity) in the global frame. This is what I want, so that I can multiply it by whatever quaternion and get it to have that as its global orientation. The problem is that the drive axis shown by the debug renderer is not what the joint actually drives towards, it seems to be only a relative rotation from the joint axis that defines the twist, swing1, and swing2 axes as x, y and z. Maybe I just don't know enough about quaternions but I can't find any way to translate the quaternion. Thanks

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!