restitution

madMAx4
Posts: 27
Joined: Fri Apr 20, 2007 7:29 pm
Location: Germany

restitution

Post by madMAx4 »

hi,

to figure out what restitution means exactly i checked wikipedia:
http://en.wikipedia.org/wiki/Coefficient_of_restitution

there it says:
restitution = squareroot ( bounce_height / drop_height )
so if i set restitution to zero there should not happen any bounce.

am i right with that? or is there another influence?
because when i set both restitutions to zero there is some small bounce.
and with one there isn't much difference.
is that a common behavior? or did i forget something?
fred
Posts: 19
Joined: Tue Apr 24, 2007 12:38 pm

Post by fred »

Hello,

I find the same problem for angularFactor, no effect on collision response...

Maybe I forget something...

Fred.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

Are you using Bullet 2.50? Angular factor should work for that version.

The 'cache friendly' solver seems to lack restitution, this should be fixed in next version (2.51).


Please try running the old solver mode, that should still have restitution:

Code: Select all

//during initialization
constraintSolver = new btSequentialImpulseConstraintSolver();
constraintSolver->setSolverMode(SOLVER_RANDMIZE_ORDER);
Thanks for the feedback,
Erwin