Drag[en]gine Game Engine
1.21
|
Collider collision test. More...
#include <deColliderCollisionTest.h>
Public Types | |
typedef deTObjectReference< deColliderCollisionTest > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
deTouchSensor * | GetTouchSensor () const |
Touch sensor to use for testing or NULL to use the parent collider world. More... | |
void | SetTouchSensor (deTouchSensor *touchSensor) |
Set touch sensor to use for testing or NULL to use the parent collider world. More... | |
deCollider * | GetCollider () const |
Collider or NULL to test using a ray. More... | |
void | SetCollider (deCollider *collider) |
Set collider or NULL to test using a ray. More... | |
const decCollisionFilter & | GetCollisionFilter () const |
Collision filter. More... | |
void | SetCollisionFilter (const decCollisionFilter &filter) |
Set collision filter. More... | |
deComponent * | GetComponent () const |
Component to use to retrieve bone position from or NULL if not used. More... | |
void | SetComponent (deComponent *component) |
Set component to use to retrieve bone position from or NULL if not used. More... | |
const decString & | GetBone () const |
Bone to apply origin to for testing or empty string to use parent collider position. More... | |
void | SetBone (const char *name) |
Set bone to apply origin to for testing or empty string to use parent collider position. More... | |
const decVector & | GetOrigin () const |
Cast origin. More... | |
void | SetOrigin (const decVector &origin) |
Set cast origin. More... | |
const decQuaternion & | GetOrientation () const |
Cast orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set cast orientation. More... | |
const decVector & | GetDirection () const |
Cast direction. More... | |
void | SetDirection (const decVector &direction) |
Set cast direction. More... | |
bool | GetLocalDirection () const |
Local direction. More... | |
void | SetLocalDirection (bool localDirection) |
Set if direction is local. More... | |
bool | GetEnabled () const |
Collision test is enabled. More... | |
void | SetEnabled (bool enabled) |
Set if collision test is enabled. More... | |
int | GetCollisionInfoCount () const |
Number of collision information. More... | |
deCollisionInfo * | GetCollisionInfoAt (int index) const |
Get collision information at index. More... | |
void | AddCollisionInfo (deCollisionInfo *info) |
Add collision information. More... | |
void | RemoveAllCollisionInfo () |
Remove all collision information. More... | |
const decDVector & | GetTestOrigin () const |
Test origin used by physics module. More... | |
void | SetTestOrigin (const decDVector &origin) |
Set test origin used by physics module. More... | |
const decQuaternion & | GetTestOrientation () const |
Test orientation used by physics module. More... | |
void | SetTestOrientation (const decQuaternion &orientation) |
Set test orientation used by physics module. More... | |
const decDVector & | GetTestDirection () const |
Test direction used by physics module. More... | |
void | SetTestDirection (const decDVector &direction) |
Set test direction used by physics module. More... | |
Operator | |
deColliderCollisionTest & | operator= (const deColliderCollisionTest &collisionTest) |
Copy a collider collision test to this collider collision test. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deColliderCollisionTest () | |
Create collider collision test. More... | |
deColliderCollisionTest (const deColliderCollisionTest &collisionTester) | |
Create copy of a collider collision test. More... | |
virtual | ~deColliderCollisionTest () |
Clean up collider collision test. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Collider collision test.
The collision information instance is created by the constructor. It is not changed for the lifetime of the object. See GetHasCollision() to determine if the collision information object contains valid collision information.
If ray testing is used (collider is NULL) all CanHitCollider calls are send to the parent collider CanHitCollider call.
The parent collider is ignored during collision tests. It is therefore not required to explicitly exclude it from CanHitCollider call.
Type holding strong reference.
deColliderCollisionTest::deColliderCollisionTest | ( | ) |
Create collider collision test.
deColliderCollisionTest::deColliderCollisionTest | ( | const deColliderCollisionTest & | collisionTester | ) |
Create copy of a collider collision test.
|
protectedvirtual |
Clean up collider collision test.
void deColliderCollisionTest::AddCollisionInfo | ( | deCollisionInfo * | info | ) |
Add collision information.
|
inline |
Bone to apply origin to for testing or empty string to use parent collider position.
|
inline |
Collider or NULL to test using a ray.
|
inline |
Collision filter.
deCollisionInfo* deColliderCollisionTest::GetCollisionInfoAt | ( | int | index | ) | const |
Get collision information at index.
int deColliderCollisionTest::GetCollisionInfoCount | ( | ) | const |
Number of collision information.
|
inline |
Component to use to retrieve bone position from or NULL if not used.
|
inline |
Cast direction.
|
inline |
Collision test is enabled.
|
inline |
Local direction.
|
inline |
Cast orientation.
|
inline |
Cast origin.
|
inline |
Test direction used by physics module.
|
inline |
Test orientation used by physics module.
|
inline |
Test origin used by physics module.
|
inline |
Touch sensor to use for testing or NULL to use the parent collider world.
deColliderCollisionTest& deColliderCollisionTest::operator= | ( | const deColliderCollisionTest & | collisionTest | ) |
Copy a collider collision test to this collider collision test.
void deColliderCollisionTest::RemoveAllCollisionInfo | ( | ) |
Remove all collision information.
void deColliderCollisionTest::SetBone | ( | const char * | name | ) |
Set bone to apply origin to for testing or empty string to use parent collider position.
void deColliderCollisionTest::SetCollider | ( | deCollider * | collider | ) |
Set collider or NULL to test using a ray.
void deColliderCollisionTest::SetCollisionFilter | ( | const decCollisionFilter & | filter | ) |
Set collision filter.
void deColliderCollisionTest::SetComponent | ( | deComponent * | component | ) |
Set component to use to retrieve bone position from or NULL if not used.
void deColliderCollisionTest::SetDirection | ( | const decVector & | direction | ) |
Set cast direction.
void deColliderCollisionTest::SetEnabled | ( | bool | enabled | ) |
Set if collision test is enabled.
void deColliderCollisionTest::SetLocalDirection | ( | bool | localDirection | ) |
Set if direction is local.
void deColliderCollisionTest::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set cast orientation.
void deColliderCollisionTest::SetOrigin | ( | const decVector & | origin | ) |
Set cast origin.
void deColliderCollisionTest::SetTestDirection | ( | const decDVector & | direction | ) |
Set test direction used by physics module.
void deColliderCollisionTest::SetTestOrientation | ( | const decQuaternion & | orientation | ) |
Set test orientation used by physics module.
void deColliderCollisionTest::SetTestOrigin | ( | const decDVector & | origin | ) |
Set test origin used by physics module.
void deColliderCollisionTest::SetTouchSensor | ( | deTouchSensor * | touchSensor | ) |
Set touch sensor to use for testing or NULL to use the parent collider world.