DanielChappuis/reactphysics3d

Transform::getOpenGLMatrix not including rotation

TheBoneJarmer opened this issue · 2 comments

Hey

In my desperate attempt to retrieve the rotation axis I figured I could consider extracting the data from the transformation matrix. However, when I run the method Transform::getOpenGLMatrix I only see the last row getting values (the position). I would expect the rotation to be included as well.

With kind regards,
TheBoneJarmer

Hello. As you can see here in the code, both the orientation and position are returned by the Transform::getOpenGLMatrix() method.

I closing this issue. Feel free to open a new discussion instead if this is still not clear.