bounces with new Chipmunk

Official forum for the Chipmunk2D Physics Library.
Post Reply
Blue Prawn
Posts: 22
Joined: Thu Jan 03, 2008 1:36 pm
Contact:

bounces with new Chipmunk

Post by Blue Prawn »

I have just updated Chipmunk-4.0.2 to Chipmunk-4.1.0, and I'm trying to bring a toy little game I've made up to date with this last version.
It does not react as before. There was a ball that was bouncing in a level, but the ball doesn't bounce anymore, which makes the game not very nice anymore. I have tryed to increase the elasticity parameter of the shapes but without any success.
How should I do to get the bounces of the objects back ?
Thanks
ker
Posts: 56
Joined: Tue Jul 15, 2008 4:13 am
Contact:

Re: bounces with new Chipmunk

Post by ker »

bouncing (elasticity) has been split from normal collision resolving to save cpu-time.
If you want it back you need to set your space's elasticIterations to e.g. 10 (10 will give you the same result as 4.0.2 would have given)

read http://code.google.com/p/chipmunk-physics/wiki/cpSpace for "more" details
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 1 guest