#include <collisionAlgorithms.h>
Public Member Functions | |
ContactCallback (double threshold, const CollisionModel *m1, const CollisionModel *m2) | |
virtual bool | distanceTest (double dSq) |
const ContactReport & | getReport () |
virtual void | leafTest (const Leaf *l1, const Leaf *l2) |
void | printStatistics () |
virtual double | quickTest (const Node *n1, const Node *n2) |
virtual void | reset () |
Private Member Functions | |
void | insertContactNoDuplicates (const position &p1, const position &p2, const vec3 &n1, const vec3 &n2, double distSq, double thresh) |
Private Attributes | |
ContactReport | mReport |
double | mThreshold |
Recursion callback for the contact test.
Definition at line 151 of file collisionAlgorithms.h.
Collision::ContactCallback::ContactCallback | ( | double | threshold, | |
const CollisionModel * | m1, | |||
const CollisionModel * | m2 | |||
) | [inline] |
Definition at line 161 of file collisionAlgorithms.h.
virtual bool Collision::ContactCallback::distanceTest | ( | double | dSq | ) | [inline, virtual] |
Implements Collision::RecursionCallback.
Definition at line 170 of file collisionAlgorithms.h.
const ContactReport& Collision::ContactCallback::getReport | ( | ) | [inline] |
Definition at line 174 of file collisionAlgorithms.h.
void Collision::ContactCallback::insertContactNoDuplicates | ( | const position & | p1, | |
const position & | p2, | |||
const vec3 & | n1, | |||
const vec3 & | n2, | |||
double | distSq, | |||
double | thresh | |||
) | [private] |
Inserts a contact into the list and checks for duplicates
Definition at line 172 of file collisionAlgorithms.cpp.
Check if triangles touch. Add contact to result set if they do
Implements Collision::RecursionCallback.
Definition at line 97 of file collisionAlgorithms_inl.h.
void Collision::ContactCallback::printStatistics | ( | ) | [virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 209 of file collisionAlgorithms.cpp.
Distance between bounding boxes
Implements Collision::RecursionCallback.
Definition at line 88 of file collisionAlgorithms_inl.h.
virtual void Collision::ContactCallback::reset | ( | ) | [inline, virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 164 of file collisionAlgorithms.h.
Definition at line 155 of file collisionAlgorithms.h.
double Collision::ContactCallback::mThreshold [private] |
Definition at line 154 of file collisionAlgorithms.h.