DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.54k stars 224 forks source link

Transform::getOpenGLMatrix not including rotation #365

Closed TheBoneJarmer closed 9 months ago

TheBoneJarmer commented 11 months ago

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

DanielChappuis commented 10 months ago

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

DanielChappuis commented 9 months ago

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