velocityThreshold is discussed here…
http://box2d.org/forum/viewtopic.php?f=3&t=1238&view=next
Instead of increasing the sleep tolerances, another alternative is to increase the minimum velocity threshold for elastic collisions: b2Settings::b2_velocityThreshold
Collisions with a relative velocity under this threshold will not bounce.
in fact more overall control of Box2D parameters for those of us that want more advanced control please
although note the comments below
IIRC Box2d has logic built in that dampens even fully elastic collisions at very low velocities - you can alter the value if you want, it’s in org.jbox2d.common.Settings, the field velocityThreshold. Actually, looking at that now, it’s set at 1 m/s, which I think is probably rather high for a pool game. Ramping it down might help, especially since you don’t need stacking of those objects.
Look in b2Settings - one of the parameters there (b2Settings::b2_velocityThreshold) determines when bounces are ignored. Set it to zero for billiards.
My balls and table were scaled to meters, so the balls themselves were quite small. After scaling everything up by 10, so the balls have a radius of .2 instead of .02, things work much better.
[import]uid: 6645 topic_id: 3536 reply_id: 303536[/import]