bulletphysics/bullet3

Quaternion and Euler

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

_talkv_wtV2v4XwAh_brTCbERgC5rW7iWghKd3jK_talkv_high.mp4

Why is this happening?
And how can I fix it to work right?