simple collision detection in 2d
-
- Posts: 14
- Joined: Wed Aug 03, 2005 3:47 pm
simple collision detection in 2d
What advice can you people give me for simple collision detection in 2d? For example, say I use bisection to find a time that was very close to the collision. So now I have two polygons that are almost touching. How can I generate the contact set from this? I am looking for the simplest thing possible. Speed is not an issue.
-
- Posts: 316
- Joined: Fri Jul 01, 2005 5:29 am
- Location: Irvine
If you intend to allow overlap (which I recommend), then the separating axis test can work well. This might help you:
http://www.gphysics.com/files/GDC2006_ErinCatto.zip
http://www.gphysics.com/files/GDC2006_ErinCatto.zip
-
- Posts: 14
- Joined: Wed Aug 03, 2005 3:47 pm
-
- Posts: 316
- Joined: Fri Jul 01, 2005 5:29 am
- Location: Irvine