Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

psCollisionDetection Class Reference

Collision Detection (CD) related class. More...

#include <colldet.h>

List of all members.

Public Member Functions

virtual bool AdjustForCollisions (csVector3 &oldpos, csVector3 &newpos, csVector3 &vel, float delta, iMovable *movable)
virtual bool Init (const csVector3 &body, const csVector3 &legs, const csVector3 &shift, iMeshWrapper *mesh)
virtual bool IsOnGround () const
 psCollisionDetection (iObjectRegistry *object_reg)
virtual void SetOnGround (bool flag)
virtual void UseCD (bool flag)
virtual ~psCollisionDetection ()

Protected Member Functions

iCollider * FindCollider (iObject *object)

Protected Attributes

csVector3 bottomSize
csColliderActor colliderActor
csRef< iMeshWrapper > mesh
csVector3 shift
csVector3 topSize
bool useCD
 Enable collision detection flag.

Detailed Description

Collision Detection (CD) related class.

This class handles CD for linearmovement PC.

Definition at line 56 of file colldet.h.


Constructor & Destructor Documentation

psCollisionDetection::psCollisionDetection ( iObjectRegistry *  object_reg)
virtual psCollisionDetection::~psCollisionDetection ( ) [virtual]

Member Function Documentation

virtual bool psCollisionDetection::AdjustForCollisions ( csVector3 &  oldpos,
csVector3 &  newpos,
csVector3 &  vel,
float  delta,
iMovable *  movable 
) [virtual]
iCollider* psCollisionDetection::FindCollider ( iObject *  object) [protected]
virtual bool psCollisionDetection::Init ( const csVector3 &  body,
const csVector3 &  legs,
const csVector3 &  shift,
iMeshWrapper *  mesh 
) [virtual]
virtual bool psCollisionDetection::IsOnGround ( ) const [virtual]
virtual void psCollisionDetection::SetOnGround ( bool  flag) [virtual]
virtual void psCollisionDetection::UseCD ( bool  flag) [virtual]

Member Data Documentation

csVector3 psCollisionDetection::bottomSize [protected]

Definition at line 84 of file colldet.h.

csColliderActor psCollisionDetection::colliderActor [protected]

Definition at line 77 of file colldet.h.

csRef<iMeshWrapper> psCollisionDetection::mesh [protected]

Definition at line 75 of file colldet.h.

csVector3 psCollisionDetection::shift [protected]

Definition at line 82 of file colldet.h.

csVector3 psCollisionDetection::topSize [protected]

Definition at line 83 of file colldet.h.

bool psCollisionDetection::useCD [protected]

Enable collision detection flag.

Definition at line 79 of file colldet.h.


The documentation for this class was generated from the following file: