Changeset 7934 in orxonox.OLD for branches/cr/src/lib/collision_detection
- Timestamp:
 - May 28, 2006, 9:55:20 PM (19 years ago)
 - Location:
 - branches/cr/src/lib/collision_detection
 - Files:
 - 
          
- 2 edited
 
- 
          collision.cc (modified) (2 diffs)
 - 
          collision.h (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/cr/src/lib/collision_detection/collision.cc
r7711 r7934 26 26 Collision::Collision () 27 27 { 28 this->setClassID(CL_COLLISION, "Collision");29 30 28 } 31 29 … … 37 35 Collision::~Collision () 38 36 { 39 // delete what has to be deleted here40 37 }  - 
        
branches/cr/src/lib/collision_detection/collision.h
r5039 r7934 1 /*! 1 /*! 2 2 * @file collision.h 3 * Definition of a collision event 4 5 */ 3 * Definition of a collision event 4 */ 6 5 7 6 #ifndef _COLLISION_H 8 7 #define _COLLISION_H 9 8 10 #include "base_object.h"11 9 #include "vector.h" 12 13 10 14 11 class WorldEntity; 15 12 class BoundingVolume; 16 13 14 17 15 //! A class representing a simple collision 18 class Collision : public BaseObject{16 class Collision { 19 17 20 18 public: … … 22 20 virtual ~Collision(); 23 21 24 public: 25 Vector pointOfImpact; //!< point of impact, approximated via bounding volumes 26 WorldEntity* body; //!< the collision body 27 BoundingVolume* boundingVolume; //!< reference to the bounding volume that fired the collision 22 23 24 private: 25 WorldEntity* entityA; //!< the collision body A 26 WorldEntity* entityB; //!< the collision body B 27 28 BoundingVolume* bvA; //!< reference to the bounding volume A 29 BoundingVolume* bvB; //!< reference to the bounding volume B 28 30 }; 29 31  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






