|
-
Feb 8th, 2003, 02:07 PM
#1
Thread Starter
Ex-Super Mod'rater
3D collision Detection
What is the best way to do collision detection in 3D? I thought of one way to do it by having boxes, like the RECT structure but with an extra dimension, then it would just be the same as 2D(sort of). For none rectangular 3D shapes I could use more than one box and the more boxes used the more precise it would be.
Is this the best way or is there another way, maybe one that will use the vertices?
Thanx for any help
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Feb 8th, 2003, 08:26 PM
#2
Frenzied Member
Re: 3D collision Detection
Originally posted by Electroman
What is the best way to do collision detection in 3D? I thought of one way to do it by having boxes, like the RECT structure but with an extra dimension, then it would just be the same as 2D(sort of). For none rectangular 3D shapes I could use more than one box and the more boxes used the more precise it would be.
Is this the best way or is there another way, maybe one that will use the vertices?
Thanx for any help
There are several methods. The most common, in order from least detailed..most detailed:
Spheres
Axis Aligned Bounding Boxes
Object Oriented Bounding Boxes
Triangles
You can find information on collisions between the above objects on google.
Z.
-
Feb 9th, 2003, 09:02 PM
#3
Fanatic Member
Lol, same thread DIRECTLY below this one.
Anyways, I assume you could use a simple cube around the object. When you detect a collision in that cube, increase the accuracy with a different collision detection (More cubes around other spots..) If one of THOSE is collided, increase accuracy. You probably don't need to go any further then that.. But you never know.
Don't pay attention to this signature, it's contradictory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|