Archived

This topic is now archived and is closed to further replies.

Crypthor

Can someone help with collisions?

Recommended Posts

Hi, can somebody help with collision ? My project is frozen! I heard about bounding boxes, but how it acutally works i can''t even imagin'' ! Can You send me some code of it? ( in c ) Or where i can get tutors or samplecodes ! Please, please help ! Thanks. Cr.

Share this post


Link to post
Share on other sites
Hi

It depends on your Game which kind of collision Detection u need, the simplest way is going with Bounding sphere''s, but this only usefull for "the first check", or an Game where the Objects are mostly round. For using this kind of technic, you only need to get the distance from middlepoints of to Objects, and then look, if it is smaller than then two radii of the Objects.
But if you wan''t more accurate Collisions you should go
with bounding Boxes, or even triangle intersection testing.
There is an very good Article, about the more Advanced thing on Gamasutra :
http://www.gamasutra.com/features/20000330/bobic_01.htm
And there are also good Articles here on Gamedev.net !

Lars

Share this post


Link to post
Share on other sites