Rotate a body

™Cadue™

17-10-2006 17:38:22

HI! I move straight a body by this code in the collision callback:

rotateTangentDirections( thedir );
Ogre::Vector3 result_accel = (thedir * 10) - object->getVelocity();
setContactTangentAcceleration( result_accel.length(), 0 );


How can I rotate a body on Y axis using a similar way?

™Cadue™

17-10-2006 21:10:47

and....how can I set the friction of a body?