[Solved] Rotate rigid body around a certain point?

Software: Away3D 4.x

Whypay, Newbie
Posted: 20 December 2013 09:25 PM   Total Posts: 12

Hi there,

I want to rotate the rigid body of a door around a certain point like this:

rbDoor.rotationY += 0.1

But the rotation center of the rigid body seems to be 0,0,0. Is there a way I can rotate the rigid body around a certain point?

Thanks for help.

   

Whypay, Newbie
Posted: 20 December 2013 09:41 PM   Total Posts: 12   [ # 1 ]

Ok, got it, using a rotation matrix:

oMatrix rbDoor.transform.clone();
oMatrix.appendRotation(0.1, new Vector3D(0,1,0), new Vector3D(xyz));
rbDoor.transform oMatrix
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X