#### Archived

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

# Collision Detection ?

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

## Recommended Posts

can somebody help with Collisions? There is a faster way to detect collision with objects in OGL? This stuff i can''t solve, with out your help !!! Thank You !

##### Share on other sites
Bounding spheres. Pick a size (radius) for an imaginary "bounding" sphere to follow each entity. For each entity you want to check for collisions between, simply see if they''re within a certain range (in this case, the sum of their bounding spheres'' radii).

##### Share on other sites
what do you do after the bounding sphere test?
do you check each polygon from one object with the other object?

##### Share on other sites
It depends on how accurate should be your collision detection algorithm.
Collision detection is one of the most difficult topic in computational geometry...
You can use bounding spheres or bounding box...
If you use simple objects you can use bounding sphere; if you''re using complex objects it''s better to use hierarchical bounding boxes...
Finally you have to check for collision for every polygon
of one object and the other.
Remember to store your objects in a matrix or in an octree so it''s simple to know if there are objects to check.

##### Share on other sites
Like Andrea said, it all depends on the objects you''re checking and the desired level of accuracy. Bounding spheres should be used with simple objects and hierarchial bounding boxes with more complex ones. But you don''t necessarily have to check any polygons or anything as long as you''ve defined your bounding boxes with enough detail for your purposes. Now, if you want *perfect* collision detection, check the polygons and their vectors, right? =)

1. 1
Rutin
36
2. 2
3. 3
4. 4
5. 5

• 12
• 14
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633344
• Total Posts
3011435
• ### Who's Online (See full list)

There are no registered users currently online

×