Original Post
Hi,
Is it possible to convert the yaw Euler angle got from the Bullet physis engine using
btTransform trans;
trans.getBasis().getEulerYPR(rx, ry, rz);
into the range [0 , 360]. Otherwise for a 360 deg rotation I get the Euler angle varying from 0->90->0-> -90 -> 0
but I want from 0->90->180->270->0
My graphics API only accepts rotation angles in the range of 0 to 360
Is it possible to convert the yaw Euler angle got from the Bullet physis engine using
btTransform trans;
trans.getBasis().getEulerYPR(rx, ry, rz);
into the range [0 , 360]. Otherwise for a 360 deg rotation I get the Euler angle varying from 0->90->0-> -90 -> 0
but I want from 0->90->180->270->0
My graphics API only accepts rotation angles in the range of 0 to 360