Sign in to follow this  
mickeyren

PhysX NxSphericalJoint orientation?

Recommended Posts

mickeyren    132
Hi the NxRevoluteJoint has a method getAngle(), which I use to construct a matrix in DX using the various D3DXMatrixRotationX/Y/Z functions. I use the constructed matrix here to properly orient the rigid body. Apparently, I'm looking something similar in NxSphericalJoint so I can properly orient the rigid body as well. Here's the header file for NxSphericalJoint - http://awakenedmmo.org/docs/physx/html/class_nx_spherical_joint.html if you would like to see. Perhaps if i can extract a correct quaternion then I can use D3DXMatrixRotationQuaternion to construct a proper rotation matrix I can use for correct orientation. Thanks.

Share this post


Link to post
Share on other sites
mickeyren    132
this is for a ragdoll i'm implementing if that helps. i need to find the proper orientation from the joint so i can properly orient the bone that is associated with the joint.

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this