In appCcdPhysicsDemo add to localCreateRigidBody:
Code: Select all
body->setRestitution(1);
body->setFriction(1);
Code: Select all
body->setRestitution(1);
body->setFriction(1);
Indeed. Right now, Bullet uses a penetration depth correction that adds a bit of energy to the system. When this is combined with too much resititution, this leads to issues. This can be improved in future version, one approach would be using the 'split impulse' idea, which means that the impulse necessary to correct penetration depth recovery is kept separate and doesn't affect the resulting velocity of the rigidbody.Jack wrote:I noticed that if you set high Restitution, objects become unstable. They can not lie calmly! Even with Friction=1 they are dancing...
In appCcdPhysicsDemo add to localCreateRigidBody:I can not create wall of objects with high Restitution.Code: Select all
body->setRestitution(1); body->setFriction(1);