Quote: "
Have you tried having the objects fix themselves after a collision with the system yet?
"
Um, what? Could you elaborate a bit more on this? I'm confused.
Quote: "
I'm very curious on how yours works.
"
The basic jist of the system is that you create a set of verticies for a polygon, then you create the Polygon for collisions with those verticies. Then while the "CollisionPolygon" class's constructor is going, it figures out each pixel between each verticies (it draws a bunch of imaginary lines), and logs each pixel.
After you have two polygons setup, you check for collision of the polygons with the command:
"polyCollision(CollisionPolygon* poly1, CollisionPolygon* poly2)"
by taking one pixel from the polygon of poly1, and seeing if another pixel in poly2 shares the same X and Y values. If then, a collision, if not, no collision.
Quote: "
Also would like a system like this for less complicated sprites and such.
"
Could you rephrase what you said here?
Anyways, since last night, I've been working on a program that will allow you to plot the needed verticies and then save them to a file. I'm only having issues on using <fstream> right now since I'm relatively new to it.
http://www.darkgdk.us/ <- You can now submit pages, upload images, yet were lacking content. We need your help!