Can't get elasticity to work

Discuss any Chipmunk bugs here.
Post Reply
mildm8nnered
Posts: 6
Joined: Thu Oct 30, 2008 7:56 am
Contact:

Can't get elasticity to work

Post by mildm8nnered »

I've got code that is essentially identical to the moon buggy example.

I've hacked it, so the vehicle is just a circle.

I've set the elasticity on the static body, and the circle to 1.0, but I don't seem to get any bounce at all.

Is there something more to elasticity than merely setting it on the shapes?
mildm8nnered
Posts: 6
Joined: Thu Oct 30, 2008 7:56 am
Contact:

Re: Can't get elasticity to work

Post by mildm8nnered »

Still no luck with bouncing ... any suggestions would be great.

cheers,
m.
maximile
Posts: 157
Joined: Mon Aug 20, 2007 12:53 pm
Location: London, UK
Contact:

Re: Can't get elasticity to work

Post by maximile »

In certain versions of Chipmunk the elastic iterations value defaults to zero. You'll need to set it to something higher (try 5-10). In C I think it's space->elasticIterations
mildm8nnered
Posts: 6
Joined: Thu Oct 30, 2008 7:56 am
Contact:

Re: Can't get elasticity to work

Post by mildm8nnered »

Thanks - that did the trick!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests