1.

Solve : Detecting collision in C?

Answer»

Could anyone help me detect collision between two graphical objects (a BULLET and a SHIP) [ ] in C.
A sample code is welcome.
Thanks
Please don't think this is my homework or something.
It is my personal interest.
2D or 3D

This article may help and even comes with some sample code.

GOOD LUCK. Presently 2D. Hey, thanks for the great link..
this reminds me of the nightmare I had with my kinematics program. Wasn't so much determining wether there was a collision (all objects were circles, so it was a simple distance test to see if they were closer then the sum of their radii, but rather the physics involved...

it was a great exercise, I guess- revisiting it now, I can hardly BELIEVE I spent so much time on it.Was it a nightmare or an animation?
Please explain..no- I meant nightmare as in pain in the @$$, not a dream.

Found out a good way to say PITA without offending the bots...



Discussion

No Comment Found