Help to optimize collision algorithm

BlitzMax Forums/BlitzMax Programming/Help to optimize collision algorithm

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.

Just realised a circle does not have a very good fit for a line. I will use a box check. Does anyone got an optimized algorithm for that, does blitzmax have any built-in collisions except the image-layer ones?

RectsOverlap(x1,y1,w1,h1,x2,y2,w2,h2) ?