Planeshift
|
Collision Detection (CD) related class. More...
#include <colldet.h>
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. |
Collision Detection (CD) related class.
This class handles CD for linearmovement PC.
psCollisionDetection::psCollisionDetection | ( | iObjectRegistry * | object_reg | ) |
virtual psCollisionDetection::~psCollisionDetection | ( | ) | [virtual] |
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] |
csVector3 psCollisionDetection::bottomSize [protected] |
csColliderActor psCollisionDetection::colliderActor [protected] |
csRef<iMeshWrapper> psCollisionDetection::mesh [protected] |
csVector3 psCollisionDetection::shift [protected] |
csVector3 psCollisionDetection::topSize [protected] |
bool psCollisionDetection::useCD [protected] |