Angular Velocity 2 questions
Posted: Mon Mar 21, 2011 2:46 pm
Hi All
I want to specify an initial angular velocity for some bodies before to start simulation. If I set a rotation around single axis, it works fine. But I can't figure out how it works for 2/3 axes. I have created cones along x, y, z and tried to find rotation order experimentally - but nothing does work. For example rotation angles (0, 1, 1 radians) do NOT produce same result as (0, 0, 1) for cone along Y. So
1) What rotation order (in Euler angles) should I specify for angular velocity?
2) How can I specify angular velocity in local space? For example there are 2 bodies: cube (parent) and cone (child). Parent cube is rotated and child cone inherits this rotation. How to applt cube's btTransform to cone's angles?
Thanks
I want to specify an initial angular velocity for some bodies before to start simulation. If I set a rotation around single axis, it works fine. But I can't figure out how it works for 2/3 axes. I have created cones along x, y, z and tried to find rotation order experimentally - but nothing does work. For example rotation angles (0, 1, 1 radians) do NOT produce same result as (0, 0, 1) for cone along Y. So
1) What rotation order (in Euler angles) should I specify for angular velocity?
2) How can I specify angular velocity in local space? For example there are 2 bodies: cube (parent) and cone (child). Parent cube is rotated and child cone inherits this rotation. How to applt cube's btTransform to cone's angles?
Thanks