Archived

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

Collision detection

This topic is 5179 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, ive got a rather unusual request... I am working on a project for some time now (its a one-of-a-kind schoolproject (NOT HOMEWORK! )) but at some point I will have to implement some form of collision detection. Since the world will feature buildings, and sometimes the user should be able to go under parts of a structure, I cant just use a boundingbox... My idea: (for all objects in the world) Create a bounding box around the entire object, and check if the user is in it or not. IF the user is in it, check for collision with the entire object (all surfaces) to determine if he/she can move in a certain direction... My problem: I think I can manage the simple detection, but I was wondering if anyone here could help me out on the real collision detection. I have all vertex data available, but need a way to check if a point (x, y, z) is inside an object tnx in advance

Share this post


Link to post
Share on other sites
No problem, take a look on this :

http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg3.htm

Select the "Sphere and Polygon Collision" demo.

I'm using that for my 3D engine and it's pretty good.

========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/

[edited by - Leyder Dylan on October 13, 2003 11:34:58 AM]

Share this post


Link to post
Share on other sites
Or you can use a bit more advanced verison of it. Search for "Generic Collision Detection For Games Using Ellipsoids" by Paul Nettle. Very good for starting with CD&R.

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites