Changeset 2010 in orxonox.OLD
- Timestamp:
- Jun 22, 2004, 12:09:56 PM (20 years ago)
- Location:
- orxonox/branches/chris/src
- Files:
-
- 2 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 { -
orxonox/branches/chris/src/vector.h
r1982 r2010 6 6 #define PI 3.14159265359f 7 7 8 /** 9 Class for 3-dimensional vector calculation 10 11 Supports all common vector operations (dot, cross, lenght and so on) 12 */ 8 13 class Vector { 9 14 … … 30 35 float angle_rad (const Vector& v1, const Vector& v2); 31 36 32 float line_distance (Vector* l1, Vector* l2); 33 37 /** 38 Class to handle 3-dimensional rotations 39 40 Can create a rotation from several inputs, currently stores rotation using a 3x3 Matrix 41 */ 34 42 class Rotation { 35 43 public: … … 47 55 Vector rotate_vector( const Vector& v, const Rotation& r); 48 56 57 /** 58 Class to store Lines in 3-dimensional space 59 60 Supports line-to-line distance measurements and rotation 61 */ 49 62 class Line 50 63 { … … 65 78 }; 66 79 80 /** 81 Class to handle planes in 3-dimensional space 82 83 Critical for polygon-based collision detection 84 */ 67 85 class Plane 68 86 {
Note: See TracChangeset
for help on using the changeset viewer.