#include <Opcode.h>
Constructor.
Definition at line 58 of file OPC_PlanesCollider.cpp.
PlanesCollider::~PlanesCollider | ( | ) | [virtual] |
Destructor.
Definition at line 70 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_Collide | ( | const AABBCollisionNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for normal AABB trees.
node | [in] current collision node |
Definition at line 277 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_Collide | ( | const AABBNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for no-leaf AABB trees.
node | [in] current collision node |
Definition at line 403 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_Collide | ( | const AABBQuantizedNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for quantized AABB trees.
node | [in] current collision node |
Definition at line 335 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_Collide | ( | const AABBQuantizedNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for quantized no-leaf AABB trees.
node | [in] current collision node |
Definition at line 451 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBCollisionNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for normal AABB trees.
node | [in] current collision node |
Definition at line 306 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for no-leaf AABB trees.
node | [in] current collision node |
Definition at line 427 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for quantized AABB trees.
node | [in] current collision node |
Definition at line 369 of file OPC_PlanesCollider.cpp.
void PlanesCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNoLeafNode * | node, |
udword | clip_mask | ||
) | [protected] |
Recursive collision query for quantized no-leaf AABB trees.
node | [in] current collision node |
Definition at line 480 of file OPC_PlanesCollider.cpp.
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 |
Definition at line 104 of file OPC_PlanesCollider.cpp.
BOOL PlanesCollider::InitQuery | ( | PlanesCache & | cache, |
const Plane * | planes, | ||
udword | nb_planes, | ||
const Matrix4x4 * | worldm = null |
||
) | [protected] |
Initializes a collision query :
cache | [in/out] a planes cache |
planes | [in] list of planes |
nb_planes | [in] number of planes |
worldm | [in] model's world matrix, or null |
Definition at line 178 of file OPC_PlanesCollider.cpp.
Opcode::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 Opcode::VolumeCollider.
inline_ BOOL Opcode::PlanesCollider::PlanesAABBOverlap | ( | const Point & | center, |
const Point & | extents, | ||
udword & | out_clip_mask, | ||
udword | in_clip_mask | ||
) | [protected] |
inline_ BOOL Opcode::PlanesCollider::PlanesTriOverlap | ( | udword | in_clip_mask | ) | [protected] |
void Opcode::PlanesCollider::setCollisionPairInserter | ( | hrp::CollisionPairInserterBase * | collisionPairInserter | ) | [inline] |
udword Opcode::PlanesCollider::mNbPlanes [protected] |
Plane* Opcode::PlanesCollider::mPlanes [protected] |
VertexPointers Opcode::PlanesCollider::mVP [protected] |