Original Post
I'm working on a program atm where objects move around the screen and avoid all other objects. The way I plan to do this is via two techniques. The first is projecting a rectangle that is as wide as the moving object and as long as the velocity, in front of it, and check to see if that rectangle collides with any objects and adjusts accordingly. The other method is to project 3 lines out from the object, at different angles, and check to see if these collide with any objects. Could anyone give some advice on how to perform this? Currently all my objects are simple shapes, (rectangles, circles, triangles etc.), they have a position vector, and the approriate set of vertexes gets drawn around that. Cheers in advance. :)