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?
Can't get elasticity to work
-
- Posts: 6
- Joined: Thu Oct 30, 2008 7:56 am
- Contact:
-
- Posts: 6
- Joined: Thu Oct 30, 2008 7:56 am
- Contact:
Re: Can't get elasticity to work
Still no luck with bouncing ... any suggestions would be great.
cheers,
m.
cheers,
m.
-
- Posts: 157
- Joined: Mon Aug 20, 2007 12:53 pm
- Location: London, UK
- Contact:
Re: Can't get elasticity to work
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
-
- Posts: 6
- Joined: Thu Oct 30, 2008 7:56 am
- Contact:
Re: Can't get elasticity to work
Thanks - that did the trick!
Who is online
Users browsing this forum: No registered users and 2 guests