Rigid body dynamics: Resting contact

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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).