Collision library screen

Blitz3D Forums/Blitz3D Programming/Collision library screen

Screen from a collision library I started working on last night for a current WIP.



The screen shows Line segment->Line segment, and circle->line segment. Which as far as algorithms go, is demonstrating ray->circle, line->line, circle->line, ray->line segment etc. etc.

The red box at the intersection of the two line segments is of course the line segment -> line segment intersection, and the red circle is intersecting the line segment on the left.

looks good so far. Is it fast?

I don't see why it shouldn't be... but I havn't stress tested yet. I'll post some results after I replace my old routines with it. And finish off the "Body" of it. My plan was to make it 'like' blitz3d's setup but for hadling collision detection for 2d application. I have to add rotation support, and decide if I'm going to do anything with pixel perfect collisions first.

is it based off nPoly?

No, nPoly didn't suit my needs or facilitate expansion I would have liked to do to it.

I tried to get a hold of you when I was planning to just edit nPoly, but you weren't responding in IRC, so I started something that would do what I needed.

[edit]
I'd appreciate if you would defer any remarks aimed at insinuating honest coders are thieves elsewhere. Sheesh.

I don't think he was implying that, and even if he was you're better off just giving him the benefit of the doubt. Just interpret "based off" as "had a couple ideas inspired by"

Point being, if it was based off it, I would have stated the fact as required in the distributions EULA. Beyond that, it was rude. End. Of. Story.

Woah there, don't get on your high horses, I was just wondering since you had PM'ed me on IRC asking about nPoly.
I was not accusing you of anything.
Yes, by based I indeed meant if you used parts of nPoly's code. Just looking to know, 'cause if it would have been nPoly's code, I could have given you a hand.
Relax a bit

Sorry m8, been a long day