#include <Opcode.h>
Constructor.
Definition at line 63 of file OPC_SphereCollider.cpp.
SphereCollider::~SphereCollider | ( | ) | [virtual] |
Destructor.
Definition at line 74 of file OPC_SphereCollider.cpp.
void SphereCollider::_Collide | ( | const AABBCollisionNode * | node | ) | [protected] |
Recursive collision query for normal AABB trees.
node | [in] current collision node |
Definition at line 343 of file OPC_SphereCollider.cpp.
void SphereCollider::_Collide | ( | const AABBNoLeafNode * | node | ) | [protected] |
Recursive collision query for no-leaf AABB trees.
node | [in] current collision node |
Definition at line 461 of file OPC_SphereCollider.cpp.
void SphereCollider::_Collide | ( | const AABBQuantizedNode * | node | ) | [protected] |
Recursive collision query for quantized AABB trees.
node | [in] current collision node |
Definition at line 397 of file OPC_SphereCollider.cpp.
void SphereCollider::_Collide | ( | const AABBQuantizedNoLeafNode * | node | ) | [protected] |
Recursive collision query for quantized no-leaf AABB trees.
node | [in] current collision node |
Definition at line 505 of file OPC_SphereCollider.cpp.
void SphereCollider::_Collide | ( | const AABBTreeNode * | node | ) | [protected] |
Recursive collision query for vanilla AABB trees.
node | [in] current collision node |
Definition at line 559 of file OPC_SphereCollider.cpp.
void SphereCollider::_CollideNoPrimitiveTest | ( | const AABBCollisionNode * | node | ) | [protected] |
Recursive collision query for normal AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 370 of file OPC_SphereCollider.cpp.
void SphereCollider::_CollideNoPrimitiveTest | ( | const AABBNoLeafNode * | node | ) | [protected] |
Recursive collision query for no-leaf AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 483 of file OPC_SphereCollider.cpp.
void SphereCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNode * | node | ) | [protected] |
Recursive collision query for quantized AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 429 of file OPC_SphereCollider.cpp.
void SphereCollider::_CollideNoPrimitiveTest | ( | const AABBQuantizedNoLeafNode * | node | ) | [protected] |
Recursive collision query for quantized no-leaf AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 532 of file OPC_SphereCollider.cpp.
bool SphereCollider::Collide | ( | SphereCache & | cache, |
const Sphere & | sphere, | ||
const Model & | model, | ||
const Matrix4x4 * | worlds = null , |
||
const Matrix4x4 * | worldm = null |
||
) |
Generic collision query for generic OPCODE models. After the call, access the results:
cache | [in/out] a sphere cache |
sphere | [in] collision sphere in local space |
model | [in] Opcode model to collide with |
worlds | [in] sphere's world matrix, or null |
worldm | [in] model's world matrix, or null |
Definition at line 94 of file OPC_SphereCollider.cpp.
bool SphereCollider::Collide | ( | SphereCache & | cache, |
const Sphere & | sphere, | ||
const AABBTree * | tree | ||
) |
Collision query for vanilla AABB trees.
cache | [in/out] a sphere cache |
sphere | [in] collision sphere in world space |
tree | [in] AABB tree |
Definition at line 284 of file OPC_SphereCollider.cpp.
BOOL SphereCollider::InitQuery | ( | SphereCache & | cache, |
const Sphere & | sphere, | ||
const Matrix4x4 * | worlds = null , |
||
const Matrix4x4 * | worldm = null |
||
) | [protected] |
Initializes a collision query :
cache | [in/out] a sphere cache |
sphere | [in] sphere in local space |
worlds | [in] sphere's world matrix, or null |
worldm | [in] model's world matrix, or null |
Definition at line 166 of file OPC_SphereCollider.cpp.
inline_ BOOL Opcode::SphereCollider::SphereAABBOverlap | ( | const Point & | center, |
const Point & | extents | ||
) | [protected] |
Checks the sphere completely contains the box. In which case we can end the query sooner.
bc | [in] box center |
be | [in] box extents |
Definition at line 311 of file OPC_SphereCollider.cpp.
BOOL Opcode::SphereCollider::SphereTriOverlap | ( | const Point & | vert0, |
const Point & | vert1, | ||
const Point & | vert2 | ||
) | [protected] |
Point Opcode::SphereCollider::mCenter [protected] |
float Opcode::SphereCollider::mRadius2 [protected] |