It's not a programmation probleme, it's a physic probleme. When you
apply no force at all on a particle it keep is speed unchanged.
So when you start your program the speed of the ball is 0 and the
force applied to it is 0 too. When you add the gravity the force
applied to it is 2 and the speed start increasing. Then you stop the
gravity, so the force is at 0 and the speed stop increasing, but stay
at his current value. So the ball will keep moving but won't
accelerate anymore. That's how it would happen in the reality if you
recreate this situation, so it work well.
http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion
But now if you want the particle to stop moving you should:reset it's
speed to 0 or add some frictional force that will slowly stop it or
add some other particles that will stop it.
On 9 juil, 17:13, "
will.car...@gmail.com" <
will.car...@gmail.com>
wrote: