1
$\begingroup$

so I've been searching google for how to do this, but all anyone seems to care about is collision detection =p, and no results come close to teaching me how to calculate 2d elastic collision between two concave polygons.

I know how to solve elastic collisions between two 2d circles, but I can't find anything more complicated than that.

I'm also a very visual person, so it would be great if someone could show me how to proceed

$\endgroup$
3
  • $\begingroup$ The not-very-helpful answer is "you conserve momentum, energy, and angular momentum". I don't think anyone is going to offer a general solution because "concave polygons" are a huge and varied set and collisions between them is a even bigger set. Too many different possibilities. $\endgroup$ Commented Sep 24, 2011 at 15:53
  • 2
    $\begingroup$ This is really two separate (hard) problems. One is that of finding the contact point on two moving (possibly) concave polygons, the other is computing the (or really, "a") physically correct impulses so that you can continue the simulation. The canonical reference on this is Brian Mirtich's PhD thesis, but it's hard to find online these days; this possible correction contains a link which seems to work. $\endgroup$
    – genneth
    Commented Sep 24, 2011 at 16:12
  • $\begingroup$ Also in practical applications the third (and probably biggest) problem is how to achieve numerical stability and performance of the algorithm. Google for the chipmunk 2d physics engine for example and youll find a lot of featurelists most of which involve the techniques to stabilize the simulations. $\endgroup$
    – BjornW
    Commented Sep 25, 2011 at 10:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.