calculate position from force and time

Post Reply
lvdeluxe
Posts: 1
Joined: Sun Nov 04, 2012 2:08 am

calculate position from force and time

Post 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 !
hehykissool
Posts: 5
Joined: Thu Oct 11, 2012 6:29 am

Re: calculate position from force and time

Post 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.
Post Reply