irado
20-06-2008 15:26:21
I see in the forum that we dont must use translate() for movement of one actor or body, and that we must use Force or Torque.
I want know how i can get the value the force add in one body in any moment, for to balance the forces and stop the body.
thanks
betajaen
20-06-2008 15:50:24
You need to brush up on your physics; there are plenty of websites to describe it.
You apply a force which builds up a momentum (linear for distance and angular for rotation), to counteract a force, you use it's momentum and mass.
irado
20-06-2008 16:12:21
Ok, thanks, i will search for this.
fatpwnage
20-06-2008 16:40:00
To stop a body moving do this:
myActor->setLinearVelocity(Vector3(0, 0, 0);
If you want to use forces:
myActor->setLinearVelocity(-myActor->getLinearMomentum());
irado
20-06-2008 19:20:27
Very thanks fatpwnage, my body stop. I can write other tutorial ^^
bye