Talk:Polygon Collision

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Concave shaps

If you have a concave shape, Will this still work ??

___________
|         /
|     ___/     __
|     | ______/  \_
|     | |__________|
|     \__   
|________\


No. You have to convert concave polygon into some convex polygons

___________
|         /
|________/     __
|     | ______/__\_
|     | |__________|
|     \__   
|_____|__\

Expanding the "collision prediction" part

The method to detect if two polygons are intersecting is pretty clear, however it would be nice to have some more details on how to detect collisions between moving polygons.

Collision Prediction

It says "You calculate the relative speed of the two objects". What does it mean with "the relative speed"? How do you calculate that?