1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Rigid body dynamics: Resting contact

  1. May 27, 2009 #1
    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.
  2. jcsd
  3. May 27, 2009 #2
    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).
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook