#include <OPC_PlanesCollider.h>
Contains a Planes-vs-tree collider.
Definition at line 30 of file OPC_PlanesCollider.h.
virtual PlanesCollider::~PlanesCollider | ( | ) | [virtual] |
void PlanesCollider::_Collide | ( | const AABBCollisionNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_Collide | ( | const AABBNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_Collide | ( | const AABBQuantizedNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_Collide | ( | const AABBQuantizedNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBCollisionNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNode * | node, |
udword | clip_mask | ||
) | [protected] |
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
bool PlanesCollider::Collide | ( | PlanesCache & | cache, |
const Plane * | planes, | ||
udword | nb_planes, | ||
const Model & | model, | ||
const Matrix4x4 * | worldm = null |
||
) |
Generic collision query for generic OPCODE models. After the call, access the results:
cache | [in/out] a planes cache |
planes | [in] list of planes in world space |
nb_planes | [in] number of planes |
model | [in] Opcode model to collide with |
worldm | [in] model's world matrix, or null |
inline_ bool PlanesCollider::Collide | ( | PlanesCache & | cache, |
const OBB & | box, | ||
const Model & | model, | ||
const Matrix4x4 * | worldb = null , |
||
const Matrix4x4 * | worldm = null |
||
) | [inline] |
Definition at line 59 of file OPC_PlanesCollider.h.
BOOL PlanesCollider::InitQuery | ( | PlanesCache & | cache, |
const Plane * | planes, | ||
udword | nb_planes, | ||
const Matrix4x4 * | worldm = null |
||
) | [protected] |
PlanesCollider::override | ( | Collider | ) | const |
Validates current settings. You should call this method after all the settings and callbacks have been defined for a collider.
Reimplemented from VolumeCollider.
inline_ BOOL PlanesCollider::PlanesAABBOverlap | ( | const Point & | center, |
const Point & | extents, | ||
udword & | out_clip_mask, | ||
udword | in_clip_mask | ||
) | [protected] |
Planes-AABB overlap test.
center | [in] box center |
extents | [in] box extents |
out_clip_mask | [out] bitmask for active planes |
in_clip_mask | [in] bitmask for active planes |
Definition at line 14 of file OPC_PlanesAABBOverlap.h.
inline_ BOOL PlanesCollider::PlanesTriOverlap | ( | udword | in_clip_mask | ) | [protected] |
Planes-triangle overlap test.
in_clip_mask | [in] bitmask for active planes |
Definition at line 11 of file OPC_PlanesTriOverlap.h.
void PlanesCollider::setCollisionPairInserter | ( | hrp::CollisionPairInserterBase * | collisionPairInserter | ) | [inline] |
Definition at line 37 of file OPC_PlanesCollider.h.
Definition at line 91 of file OPC_PlanesCollider.h.
udword PlanesCollider::mNbPlanes [protected] |
Definition at line 93 of file OPC_PlanesCollider.h.
Plane* PlanesCollider::mPlanes [protected] |
Definition at line 94 of file OPC_PlanesCollider.h.
VertexPointers PlanesCollider::mVP [protected] |
Definition at line 96 of file OPC_PlanesCollider.h.