[ODE] bounce against a wall

Jon Watte hplus-ode at mindcontrol.org
Thu May 6 09:45:15 MST 2004


In the near callback, where you create your contacts, if one of the bodies is the box, set the Bounce flag and parameter; else don't set them (or set them to a low value).

Note that there will always be a little bit of bounce, because of the way that ODE resolves penetrations. You can remove this by reducing ERP and/or increasing CFM.

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of
barbara.yersin at urbanet.ch
Sent: Thursday, May 06, 2004 6:31 AM
To: ode at q12.org
Subject: [ODE] bounce against a wall


Hello!
I'm trying to have a small ball bouncing against a huge box. 
The ball should bounce in order to almost keep its initial velocity.
However, I don't want the plane on which the scene takes place to be bouncy.

How can I manage to apply a high bouncyness to the box without applying it on every other object?

_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list