#include <vector>
#include "mytools.h"
#include "collisionStructures.h"
Go to the source code of this file.
Classes | |
class | Collision::ClosestPtCallback |
class | Collision::CollisionCallback |
class | Collision::ContactCallback |
class | Collision::DistanceCallback |
class | Collision::RecursionCallback |
class | Collision::RegionCallback |
Namespaces | |
namespace | Collision |
Functions | |
void | Collision::startRecursion (const CollisionModel *model1, const CollisionModel *model2, RecursionCallback *rc) |
The entry point to the one and only recursion mechanism. |
Contains the actual collision detection mechanisms. This file implements the recursive calls and algorithms; most of the primitive interesection and geometry routines are in the BoundingBox and Triangle classes and files.
There are 5 types of collision queries:
All collision detection tests are implemented as recursive calls, using the same recursion mechanism. The recursion is adapted to each type of query using a recursionCallback, which must implement three tests. At each iteration, the recursion will be called on two nodes. It will call the following tests from its instance of the recursionCallback:
Definition in file collisionAlgorithms.h.