Quaternion and Euler
shorttrack789 opened this issue · 0 comments
shorttrack789 commented
- Get quaternion - rot=pybullet.getbasepositionandorientation()[1]
- Cast it into euler - roteuler=fromquaterniontoeuler(rot)
- Rotate - glm.mat4() glm.rotate(roteuler)
This code makes a issue which the Object keep rotating reversed intervaly.
_talkv_wtV2v4XwAh_brTCbERgC5rW7iWghKd3jK_talkv_high.mp4
Why is this happening?
And how can I fix it to work right?