- Timestamp:
- Jun 6, 2005, 11:06:16 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/collision_detection
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/collision_detection/bounding_volume.h
r4511 r4520 10 10 #include "base_object.h" 11 11 12 class sVect3D; 13 class Vector; 12 14 13 15 //! An abstract class representing a bounding volume … … 18 20 virtual ~BoundingVolume(); 19 21 22 inline const Vector* getCenter() const { return this->center; } 23 inline const Vector* getAxis () const { return this->axis; } 24 inline const sVect3D* getHalfLength() const { return this->halfLength; } 25 26 sVect3D* getVertices() const; 27 void mergeWith(const BoundingVolume& bv); 20 28 21 29 private: 30 Vector* center; //!< Center point of box 31 Vector* axis; //!< Axes of oriented box [x,y,z] 32 sVect3D* halfLength; //!< Half lengths of the box 33 22 34 23 35 }; -
orxonox/trunk/src/util/collision_detection/collision.h
r4511 r4520 9 9 10 10 #include "base_object.h" 11 #include "vector.h" 11 12 12 13 // FORWARD DEFINITION 13 14 14 class WorldEntity; 15 class sVec3D; 16 class BoundingVolume; 15 17 16 18 //! A class representing a simple collision … … 21 23 virtual ~Collision(); 22 24 23 24 private: 25 25 public: 26 Vector pointOfImpact; //!< point of impact, approximated via bounding volumes 27 WorldEntity* body; //!< the collision body 28 BoundingVolume* boundingVolume; //!< reference to the bounding volume that fired the collision 26 29 }; 27 30
Note: See TracChangeset
for help on using the changeset viewer.