#include <collisionAlgorithms.h>
Public Member Functions | |
CollisionCallback (const CollisionModel *m1, const CollisionModel *m2) | |
virtual bool | distanceTest (double d) |
bool | isCollision () const |
virtual void | leafTest (const Leaf *l1, const Leaf *l2) |
void | printStatistics () |
virtual double | quickTest (const Node *n1, const Node *n2) |
void | reset () |
Private Attributes | |
bool | mCollision |
Recursion callback for the collision test.
Definition at line 119 of file collisionAlgorithms.h.
Collision::CollisionCallback::CollisionCallback | ( | const CollisionModel * | m1, | |
const CollisionModel * | m2 | |||
) | [inline] |
Definition at line 124 of file collisionAlgorithms.h.
virtual bool Collision::CollisionCallback::distanceTest | ( | double | d | ) | [inline, virtual] |
Only recurse if the bboxes overlap, and we don't already have a detected collision.
Implements Collision::RecursionCallback.
Definition at line 135 of file collisionAlgorithms.h.
bool Collision::CollisionCallback::isCollision | ( | ) | const [inline] |
Definition at line 130 of file collisionAlgorithms.h.
Check if triangles collide. If they do, set reply to true
Implements Collision::RecursionCallback.
Definition at line 50 of file collisionAlgorithms_inl.h.
void Collision::CollisionCallback::printStatistics | ( | ) | [virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 164 of file collisionAlgorithms.cpp.
Tests if boxes overlap. Returns -1 if they do, 1 if they don't
Implements Collision::RecursionCallback.
Definition at line 72 of file collisionAlgorithms_inl.h.
void Collision::CollisionCallback::reset | ( | ) | [inline, virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 126 of file collisionAlgorithms.h.
bool Collision::CollisionCallback::mCollision [private] |
Definition at line 122 of file collisionAlgorithms.h.