The best way to pitch, yaw and roll the physic body

Software: Away3D 4.x

jackisgames, Newbie
Posted: 10 July 2012 10:54 AM   Total Posts: 7

Hi all,

as the title said what’s the best way to manipulate the rigid body?

here’s my method:

var mat:Matrix3D = rigidBody.transform;
mat.prependRotation(pitch, Vector3D.X_AXIS);
mat.prependRotation(yaw, Vector3D.Y_AXIS);
mat.prependRotation(roll, Vector3D.Z_AXIS);
rigidBody.transform = mat;

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X