VIKTOR HESSELBOM


« Back

Collision detection

Here's something I whipped up today. It's a library for checking collisions of objects. The objects are represented as either a circle, a line or a polygon.

Right now it only checks if two objects are intersecting and is not returning any information about where they are intersecting. I was thinking about adding this information before releasing it, because I'm not sure how many people would want to use it in it's current state.

In the next couple of days I'll complete it and publish the library along with some examples of use. I think it could be useful for several things.

In the meantime here's something you can play with where I demonstrate where the library is right now. Just click the buttons to create objects and drag them around. If they're red it means they're intersecting an object.


Comments

© VIKTOR HESSELBOM