This project has moved. For the latest updates, please go here.

Over penetration + Over restitution

Topics: User Forum
Dec 30, 2006 at 9:10 PM
I'm using these two objects:

RectangleRigidBody r1 = new RectangleRigidBody(1000, 200, 1);
r1.IsStatic= true;
r1.FrictionCoefficient = 0.5f;
CircleRigidBody r = new CircleRigidBody(100, 120, 1);
r.RestitutionCoefficient = 0.001f;
r.RotationalDragCoefficient = 0.005f;
r.FrictionCoefficient = 0.005f;
r.LinearDragCoefficient = 0.0001f;

I've also tried various combination of the coefficient and params.

When I drop the circle on the rectangle (gravity = 10), I see the circle penetrating the rectangle slowly, sometimes going half way and sometimes more. Then it shoots upwards with a lot of spin as if it's forcibly repelled. It bounces several times and does not stop, it keeps going just a bit into the rectangle and gets extra impluses upwards.

This doesn't happen when I use a rectangle instead of a circle.

Any ideas?
Dec 31, 2006 at 12:34 AM
What is you step size?
Jan 1, 2007 at 1:57 PM
I'm sorry but I'm not sure what you exactly mean by step size. The only stepsize in the code did not seem relevant to me.

Excellent release by the way you really hit my wish list.
Oh and happy new years :)
Jan 1, 2007 at 2:46 PM
I meant the value you send to PhysicsSimulator.Update. It should be in the range of .016 or less. This is equivalent to 60 frames per second.