challenge
15-11-2008 13:19:21
I know the LinearVelocity and the mass, How can I get the force to stop the object? Can you show me some code maybe? thanks a lot
enligor
15-11-2008 22:33:46
Firstly, plz don't forget, that ODE is non-deterministic by nature, therefore this kind of calculation is not guaranteed to give you a 100% accurate result. Thus, in practice, you'd find yourself wanting to fake that, by say either using velocities directly, or simply changing the object's position and/or orientation manually.
However, to find out the force use your standard - F=ma equation. That means though, that you need 2 velocities and the time difference between them. Sorry, can't give an example code for that, as it is a bit context-sensitive