Varying restitution example

I just looked through your examples and realized that for e=1 in your restitution example the system gains energy. On my machine the last ball jumps higher and higher. Is this the desired behavior for e=1? I would have guessed that it is still preferable to loose energy?

Cheers,
-Dirk
I noticed that too. It could be the potential energy gain from position correction. The cure for this would be CCD.
I suspect the following has also to do with position correction:

The ball with 0.9 restitution keeps on bouncing.
When I change the gravity to 50, all balls with a restitution of 0.5 and up have the bouncies.

Cheers,
Frank.
I've increased the b2_velocityThreshold a bit and it behaves now like I was hoping.

F.

Original thread: https://box2d.org/forum/viewtopic.php?t=68