Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7934 in orxonox.OLD for branches/cr/src/lib


Ignore:
Timestamp:
May 28, 2006, 9:55:20 PM (19 years ago)
Author:
patrick
Message:

collision event

Location:
branches/cr/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_detection/collision.cc

    r7711 r7934  
    2626Collision::Collision ()
    2727{
    28    this->setClassID(CL_COLLISION, "Collision");
    29 
    3028}
    3129
     
    3735Collision::~Collision ()
    3836{
    39   // delete what has to be deleted here
    4037}
  • branches/cr/src/lib/collision_detection/collision.h

    r5039 r7934  
    1 /*! 
     1/*!
    22 * @file collision.h
    3   *  Definition of a collision event
    4 
    5 */
     3 *  Definition of a collision event
     4 */
    65
    76#ifndef _COLLISION_H
    87#define _COLLISION_H
    98
    10 #include "base_object.h"
    119#include "vector.h"
    12 
    1310
    1411class WorldEntity;
    1512class BoundingVolume;
    1613
     14
    1715//! A class representing a simple collision
    18 class Collision : public BaseObject {
     16class Collision {
    1917
    2018 public:
     
    2220  virtual ~Collision();
    2321
    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
    2830};
    2931
  • branches/cr/src/lib/collision_reaction/collision_handle.h

    r7932 r7934  
    3232
    3333  void handleCollisions();
     34  void flushCollsions();
    3435
    3536
Note: See TracChangeset for help on using the changeset viewer.