Page 1 of 1

calculate position from force and time

Posted: Sun Nov 04, 2012 2:19 am
by lvdeluxe
Hi,

I'm building a multiplayer game(AS3), and, in order to synchronize all objects on my scene, I need to find the position of an object based on an arbitrary force applied on it, and the time elapsed since the last update.
Basically : What would be the position of a rigidbody if a constant force would be applied on its Z axis (let's say 100 per sec.) and 50milliseconds have elapsed ?
I'm sure there's an easy way to calculate it, but I have no clue how to achieve it...

thanks for helping me !

Re: calculate position from force and time

Posted: Wed Nov 07, 2012 4:14 pm
by hehykissool
When you using the stepSimulation ,you will find a clearForces() in this function ,that means every time you apply a force on your collision object ,you will lose this force after a stepSimulation.


you should apply a same force every time using your stepSimulation.