rewb0rn
15-01-2007 15:45:25
Hi, is there a method to change the bouncyness of a body, like the sphere feet in the walking character tutorial? At the moment my player bounces all over the level if he runs up stairs lol
rewb0rn
15-01-2007 15:45:25
bleubleu
15-01-2007 17:21:28
bool Application::collision(OgreOde::Contact* contact)
{
// The bouncyness is a parameter between 0 and 1.
contact->setBouncyness(0.0);
return true;
}
The bouncyness of the stops. This is a restitution parameter in the range 0..1. 0 means the stops are not bouncy at all, 1 means maximum bouncyness.
world->setCollisionListener(this);
rewb0rn
15-01-2007 17:30:55
bleubleu
15-01-2007 19:06:03
contact->getFirstGeometry()
contact->getSecondGeometry()
rewb0rn
15-01-2007 19:44:19
You may want to keep a pointer to your actual application objects