source:
orxonox.OLD/orxonox/trunk/src/lib/collision_detection/collision.h
@
4674
Last change on this file since 4674 was 4544, checked in by patrick, 19 years ago | |
---|---|
File size: 665 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 | |
[4526] | 13 | |
[4520] | 14 | class WorldEntity; |
15 | class BoundingVolume; | |
[4510] | 16 | |
[4511] | 17 | //! A class representing a simple collision |
18 | class Collision : public BaseObject { | |
[4510] | 19 | |
20 | public: | |
[4511] | 21 | Collision(); |
22 | virtual ~Collision(); | |
[4510] | 23 | |
[4520] | 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 | |
[4510] | 28 | }; |
29 | ||
[4511] | 30 | #endif /* _COLLISION_H */ |
Note: See TracBrowser
for help on using the repository browser.