csColliderActor Class Reference
With csColliderActor you can more easily manage collision detection of a player or character model with gravity handling. More...
#include <cstool/collider.h>
Public Member Functions | |
bool | AdjustForCollisions (const csVector3 &oldpos, csVector3 &newpos, const csVector3 &vel, float delta) |
This is used by Move() but you can also call it manually. | |
bool | CheckRevertMove () const |
Check if we should revert a move (revert rotation). | |
csColliderActor () | |
Construct. | |
float | GetGravity () const |
Get gravity. | |
const csVector3 & | GetRotation () |
Get current rotation in angles around every axis. | |
bool | HasCD () const |
Return true if collision detection is enabled. | |
void | InitializeColliders (iCamera *camera, const csVector3 &legs, const csVector3 &body, const csVector3 &shift) |
Initialize the colliders. | |
void | InitializeColliders (iMeshWrapper *mesh, const csVector3 &legs, const csVector3 &body, const csVector3 &shift) |
Initialize the colliders. | |
bool | IsOnGround () const |
Check if we are on the ground. | |
bool | Move (float delta, float speed, const csVector3 &velBody, const csVector3 &angularVelocity) |
Move the model. | |
void | SetCD (bool c) |
Enable/disable collision detection (default enabled). | |
void | SetCollideSystem (iCollideSystem *cdsys) |
Set the collision detection system. | |
void | SetEngine (iEngine *engine) |
Set the engine. | |
void | SetGravity (float g) |
Set gravity. | |
void | SetOnGround (bool og) |
Set the onground status. | |
void | SetRotation (const csVector3 &rot) |
Set current rotation. |
Detailed Description
With csColliderActor you can more easily manage collision detection of a player or character model with gravity handling.
Definition at line 329 of file collider.h.
Constructor & Destructor Documentation
|
Construct.
|
Member Function Documentation
|
This is used by Move() but you can also call it manually. It will adjust the new position to match with collision detection. |
|
Check if we should revert a move (revert rotation).
Definition at line 496 of file collider.h. |
|
Get gravity.
Definition at line 471 of file collider.h. |
|
Get current rotation in angles around every axis. This is only used if a camera is used. Definition at line 516 of file collider.h. |
|
Return true if collision detection is enabled.
Definition at line 486 of file collider.h. |
|
Initialize the colliders. This version is used if you have a first person view and want collision detection to move the camera instead of a mesh.
|
|
Initialize the colliders.
|
|
Check if we are on the ground.
Definition at line 476 of file collider.h. |
|
Move the model.
|
|
Enable/disable collision detection (default enabled).
Definition at line 491 of file collider.h. |
|
Set the collision detection system.
Definition at line 422 of file collider.h. |
|
Set the engine.
Definition at line 428 of file collider.h. |
|
Set gravity. Default 9.806. Definition at line 462 of file collider.h. |
|
Set the onground status.
Definition at line 481 of file collider.h. |
|
Set current rotation. This is only used if a camera is used. |
The documentation for this class was generated from the following file:
- cstool/collider.h
Generated for Crystal Space by doxygen 1.4.4