bullet3 icon indicating copy to clipboard operation
bullet3 copied to clipboard

Quaternion and Euler

Open shorttrack789 opened this issue 10 months ago • 0 comments

  1. Get quaternion - rot=pybullet.getbasepositionandorientation()[1]
  2. Cast it into euler - roteuler=fromquaterniontoeuler(rot)
  3. 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?

shorttrack789 avatar Aug 26 '23 09:08 shorttrack789