Sign in to follow this  

PhysX and matrix manipulation

This topic is 3667 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 writing an editor using PhysX and DirectX. Right now, I'm able to extract the matrix information from PhysX for rendering using Actor->getGlobalPose().getColumnMajor44( matrix ). However, if I want to do the opposite.. pass it a matrix to use, it never works. I use the following. Actor->getGlobalPose().setColumnMajor44( matrix ). I'm manually manipulating a matrix then wanting to pass it to PhysX so it can update the physics object accordingly. Does anyone know why this function isn't working like I want or know any other method of passing it a matrix? Thanks, Jon

Share this post


Link to post
Share on other sites
getGlobalPose returns a copy of the matrix - so if you modify it you'll be modifying some temporary and having no effect. You need to call setGlobalPose

Share this post


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