First Collision Detection Program

Wasn't really sure where to post this, it's really just a little program I wanted to share with everyone because it's my second graphics project and 1st collision project! I know it's not the best collision detection out there, but let me know what you think.

I used SFML and a public Collision detection class on their wiki (though I had to modify it and make my own window border collision detection method because it wasn't included.) The windows border collision is a little buggy when used in conjunction with sprite collision, but it still works.
1
2
3
Download
/*******/
www.yousendit.com/download/MEtRck81YUloeVkwTVE9PQ


Directions
-------------
W, A, S, D: Move sprite 1
UP, LEFT, RIGHT, DOWN: Move sprite 2
Last edited on
Nice. I have a question. Do you only keep track of the position of your balls? You could also store
their speed somewhere and when they collide, use that information to make the result more realistic.

I've been playing with collision detection too these days. Here's something I wrote a while
ago -> http://codepad.org/gwKUFERy It's very simple but it could give you some ideas.
I hope ultifinitus finishes his article about collision detection soon, so we can learn more.

I'd like to take a look at the source code of your progrm.
If you don't mind, put it in the rar file or post it here.

Also, consider putting msvcp100d.dll and msvcr100d.dll in the rar file,
so that people that don't work with Visual Studio can run the program too.
Last edited on
Topic archived. No new replies allowed.