™Cadue™
17-10-2006 17:38:22
HI! I move straight a body by this code in the collision callback:
How can I rotate a body on Y axis using a similar way?
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?