Rigid body dynamics: Resting contact

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
epaik91
Messages
3
Reaction score
0
I'm currently programming a 2D rigid body dynamics engine.

While I have realistic collision detection and response between polygons, I have trouble in the simulation once I implement gravity.

When these rigid bodies are influenced by gravity, they never fall to complete rest (e.g. they always retain some kinetic energy and keep bouncing around). Additionally, when several bodies are on top of each other, my separating algorithm fails and the bodies interpenetrate a little.

I need to figure out a way to implement resting contact forces. Any advice would be appreciated.
 
Physics news on Phys.org
That's a common problem, I suggest that you search out some of the existing technical papers on the subject. Let us know how it goes. (If I were fiddling with this again, I'd try either slightly non-rigid bodies or exact non-iterative solutions to the motion).