SAM33 / jbox2d

Automatically exported from code.google.com/p/jbox2d
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Make Settings.velocityThreshold public #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce the problem:
1. a world with (0,0) gravity
2. a static body with edge shape fixture
3. a dynamic body moving slowly toward the edge

The dynamic body should bounce slowly to the opposite direction.
Instead it sticks to the wall.

What version of the product are you using? On what operating system?
Latest 2.2.1

The culprit is the velocity threshold defined in Settings.velocityThreshold. It 
should be zero to support constant bouncing, which is needed for wold without 
gravity that leads to no resting contacts. 
We need access to this parameter, or give it some smart value based on scalar 
gravity.

Original issue reported on code.google.com by boccara....@gmail.com on 4 Feb 2014 at 8:55