DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D

Home Page:http://www.reactphysics3d.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transform::getOpenGLMatrix not including rotation

TheBoneJarmer opened this issue · 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.