However, they don't bounce on convex collisions, that were set static (mass of zero).
Test:
- Set gravity to -100 and recompile:
- Code: Select all
#define DEMO_GRAVITY -100.0f // PhysicsUtils.h, line 16
- Run Sandbox, and set solver model to exact (0).
- Select Multi Geometry Collision option.
- Turn on Show Contact Points
You will see objects bounce, or the drawn contact points blinking, which means object is bouncing.
Look at heightfield - you'll see objects bounce on them.
Look at the white static box in air - you'll see objects not bouncing.
The set solver model to zero, and the bouncing of objects on heightfield stops.