bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

Home Page:http://bulletphysics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quaternion and Euler

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