takahiyn / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

using m_splitImpulse disables restitution #269

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set bltWorld->getSolverInfo().m_splitImpulse = true;
2. set restitution to 1.0 on any body and let it fall from great height 
3. when hitting ground no restitution is applied

What is the expected output? What do you see instead?
the body should bounce back, like with m_splitImpulse = false

What version of the product are you using? On what operating system?
2.75rc7

Original issue reported on code.google.com by linz...@gmx.de on 28 Aug 2009 at 9:22

GoogleCodeExporter commented 9 years ago

It should bounce back, as long as the ground also has non-zero restitution.
By default, Bullet multiplies the restitution of both objects.

Have you tried setting both ground and body to restitution 1?

Original comment by erwin.coumans on 17 Sep 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Yes, both are set to 1. The same code just with
"bltWorld->getSolverInfo().m_splitImpulse = false" will bounce.

Original comment by linz...@gmx.de on 18 Sep 2009 at 12:10