Base class for all collision tests.
More...
#include <base_collision_test.h>
Base class for all collision tests.
A collision test consists of some input data (specific to the test) and output data (see modelTriangle(), triangleId(), ...)
Definition at line 12 of file base_collision_test.h.
Claudette::BaseCollisionTest::BaseCollisionTest |
( |
| ) |
|
Claudette::BaseCollisionTest::~BaseCollisionTest |
( |
| ) |
|
bool Claudette::BaseCollisionTest::collides |
( |
| ) |
const |
Collision result, returns true if a collision was detected.
const float* Claudette::BaseCollisionTest::modelTriangle |
( |
| ) |
const |
The triangle that collided (belongs to this model)
The result is returned as a pointer being an array of 9 float values :
- x,y,z of 1st vertex : [0..2]
- 2nd vertex : [3..5]
- 3rd vertex : [6..8]
float* Claudette::BaseCollisionTest::mutablePoint |
( |
| ) |
|
|
protected |
const float* Claudette::BaseCollisionTest::point |
( |
| ) |
const |
The detected collision point (array of 3 items containing x,y,z coords)
int Claudette::BaseCollisionTest::triangleId |
( |
| ) |
const |
The index of the triangle that collided (belongs to this model)
The documentation for this class was generated from the following file: