2d Polygon collision Module

Miscellaneous Forums/Blitz Showcase/2d Polygon collision Module

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi Wave,

In the game I am developing the polygons are very complex and the collision algo in the code above would be erroneous. A collision hull is a simple polygonal representation of the complex poly. I use the Hull to check for collisions which is much faster as it has fewer points to check and is a true convex polygon.

Here is a screenie of an early version of the editor to demonstrate. The Blue Lines are the collision hull.