PhysX and matrix manipulation
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement