Buckcherry
23-06-2006 13:54:13
I am trying to move my character. At the moment, it is only affected by the gravity force.
I have test to move my character in different ways without success:
I have been taking a look into the OgreNewt_Body.h file and it says:
What does it mean with "only valid inside a ForceCallback" ??
How can I move my character???.
I have test to move my character in different ways without success:
mBody->addForce(Vector3(0,0,10));mBody->addTorque(Vector3(0,0,10));I have been taking a look into the OgreNewt_Body.h file and it says:
//! add force to the body.
/*!
this function is only valid inside a ForceCallback function!
*/
void addForce( const Ogre::Vector3& force ) { NewtonBodyAddForce( m_body, &force.x ); }What does it mean with "only valid inside a ForceCallback" ??
How can I move my character???.