Changeset 2010 in orxonox.OLD for orxonox/branches/chris/src/collision.h
- Timestamp:
- Jun 22, 2004, 12:09:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/collision.h
r1982 r2010 20 20 Vector m; 21 21 } CC_Tree; 22 23 /** 24 This class implements a more or less efficient collision system based on nested hitzones. 25 Instead of using a brute force approach (try if any hitzone intersects with any other hitzone) 26 this features a tree of spheric hitzones. Only some of them are actually the solid groundstones 27 the collision model bases on, the others serve to group them into sets of spheres that are only 28 checked for collision when the assigned top level sphere has registered a collision, preventing 29 unnessessary checks (like between every sphere of two collision clusters at the other end of the world) 30 from being performed. 31 The CollisionCluster features collision detection between multiple CollisionClusters as well as 32 traceing a collision between a line of defined length and a cluster. In both cases the base spheres 33 that have intersected are marked with a flag in an unsigned long for hitlocation queries. In the case 34 of a trace, the exact point of interception is returned as well. 35 */ 22 36 23 37 class CollisionCluster {
Note: See TracChangeset
for help on using the changeset viewer.