Page 1 of 1

body velocity increasing like anything

Posted: Tue Nov 04, 2008 4:25 am
by observer247
I have around 12 circles in my space. After playing around with them for some time, I see the velocity of the balls keep increasing like hell, so much that they blast through other bodies.

I have put in a hack which caps the velocity. But I dont think that is the way to do things. I am sure that I am doing something wrong. Please suggest.

Re: body velocity increasing like anything

Posted: Tue Nov 04, 2008 4:46 am
by ker
Are you manually applying any force? because forces don't get reset automatically, you need to do that yourself.

The only other thing I could think of would be some crazy value for elasticity of the shapes.

Re: body velocity increasing like anything

Posted: Tue Nov 04, 2008 8:47 pm
by observer247
no, not applying any force on my own.

As the bodies collide, I see the velocity increase.

Re: body velocity increasing like anything

Posted: Tue Nov 04, 2008 11:25 pm
by maximile
So what about the elasticity? If it's close to or above 1 that'll cause what you're describing.