nPoly: 2D Polygonal Collision Library

Miscellaneous Forums/Blitz Showcase/nPoly: 2D Polygonal Collision Library

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.

I was also thinking about doing it by simply returning the normal angle, since it's 2D, you'll have everything you need with it. And some commands to retrieve the normalized X and Y from the angle. This way though, I think I would have to make a different function, since if the collision normal is 0deg, it would return 0, which would be false :/
Unless I always add 360 degrees to the angle. And return 0 when something doesn't collide.