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 !
calculate position from force and time
-
- Posts: 5
- Joined: Thu Oct 11, 2012 6:29 am
Re: calculate position from force and time
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.
you should apply a same force every time using your stepSimulation.