body velocity increasing like anything

Official forum for the Chipmunk2D Physics Library.
Post Reply
observer247
Posts: 3
Joined: Tue Nov 04, 2008 4:17 am
Contact:

body velocity increasing like anything

Post 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.
ker
Posts: 56
Joined: Tue Jul 15, 2008 4:13 am
Contact:

Re: body velocity increasing like anything

Post 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.
observer247
Posts: 3
Joined: Tue Nov 04, 2008 4:17 am
Contact:

Re: body velocity increasing like anything

Post by observer247 »

no, not applying any force on my own.

As the bodies collide, I see the velocity increase.
maximile
Posts: 157
Joined: Mon Aug 20, 2007 12:53 pm
Location: London, UK
Contact:

Re: body velocity increasing like anything

Post by maximile »

So what about the elasticity? If it's close to or above 1 that'll cause what you're describing.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests