local rotation around axis

Software: Other

Dubinsky, Newbie
Posted: 06 January 2014 03:57 PM   Total Posts: 2

Hi there!

Searched forum didnt find that one - how to get rotation speed of rigid body at local axis it have? (pitch roll yaw speed)? it seems body.angularVelocity returns world axis oriented rotation speed, am I correct? Not very bright at 3D math…

   

John Brookes, Moderator
Posted: 07 January 2014 12:03 PM   Total Posts: 732   [ # 1 ]

Not sure maybe try…

var ypr:Vector3D = myRb.angularVelocity
ypr = myRb.skin.inverseSceneTransform.deltaTransformVector(myRb.angularVelocity);

   

Dubinsky, Newbie
Posted: 07 January 2014 02:36 PM   Total Posts: 2   [ # 2 ]

Wow. It seems working! Thank you.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X