Hi all
does anyone know where I can find some good information on this ? I used to have Tricks of the Windows Game programming gurus which had it all, but I dont have that book anymore and am battling to find info online about this.
as in drawing vector shapes and rotating them, scaling them etc...
I would like to get to a point where I could do this in code and check for collisions between polygons.
My math really stinks, I know in the book, he used matrices to transform the polygons. He had some serious collision detection too, to be able to check poly to poly collision.
I'm still working on poly to poly collisions myself. I *do* however have a rather spiffy little BMax Vector Graphics library cooking.
You can find a demo here:
http://www.codersworkshop.com/viewshowcase.php?id=802
Poly to Poly collision?
You must understand first the
Method of Separation Axis.
Heavy Stuff...
I tried 3 or 4 times to convert the
PolyColly but I had just done only the 2 first parts. Be sure to check it out.
A quick and dirty way would be to define a collision radius around the polygon and use A^2 = B^2 + C^2 to find the distance between polys.