bullet3
bullet3 copied to clipboard
Quaternion and Euler
- 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.
https://github.com/bulletphysics/bullet3/assets/88964478/abee8ba7-d650-4b7e-a423-3d425fc50e4b
Why is this happening? And how can I fix it to work right?