Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/collision_detection/collision.h @ 4521

Last change on this file since 4521 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
Line 
1/*!
2    \file collision.h
3    \brief Definition of a collision event
4
5*/
6
7#ifndef _COLLISION_H
8#define _COLLISION_H
9
10#include "base_object.h"
11#include "vector.h"
12
13// FORWARD DEFINITION
14class WorldEntity;
15class sVec3D;
16class BoundingVolume;
17
18//! A class representing a simple collision
19class Collision : public BaseObject {
20
21 public:
22  Collision();
23  virtual ~Collision();
24
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
29};
30
31#endif /* _COLLISION_H */
Note: See TracBrowser for help on using the repository browser.