Last change
on this file since 4522 was
4520,
checked in by patrick, 19 years ago
|
orxonox/trunk: implemented bv, collision, and added a global cd defs file
|
File size:
700 bytes
|
Rev | Line | |
---|
[4510] | 1 | /*! |
---|
[4511] | 2 | \file collision.h |
---|
| 3 | \brief Definition of a collision event |
---|
[4510] | 4 | |
---|
| 5 | */ |
---|
| 6 | |
---|
[4511] | 7 | #ifndef _COLLISION_H |
---|
| 8 | #define _COLLISION_H |
---|
[4510] | 9 | |
---|
| 10 | #include "base_object.h" |
---|
[4520] | 11 | #include "vector.h" |
---|
[4510] | 12 | |
---|
| 13 | // FORWARD DEFINITION |
---|
[4520] | 14 | class WorldEntity; |
---|
| 15 | class sVec3D; |
---|
| 16 | class BoundingVolume; |
---|
[4510] | 17 | |
---|
[4511] | 18 | //! A class representing a simple collision |
---|
| 19 | class Collision : public BaseObject { |
---|
[4510] | 20 | |
---|
| 21 | public: |
---|
[4511] | 22 | Collision(); |
---|
| 23 | virtual ~Collision(); |
---|
[4510] | 24 | |
---|
[4520] | 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 |
---|
[4510] | 29 | }; |
---|
| 30 | |
---|
[4511] | 31 | #endif /* _COLLISION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.