Collision test between two meshes. More...
#include <model_collision_test.h>
Public Member Functions | |
| ModelCollisionTest () | |
| ~ModelCollisionTest () | |
| const CollisionModel3D * | otherModel () const |
| void | setOtherModel (const CollisionModel3D *other) |
| const float * | otherModelTransform () const |
| Allows overriding the other model's transform, by supplying an alternative one. More... | |
| void | setOtherModelTransform (const float trsf[16]) |
| int | accuracyDepth () const |
| void | setAccuracyDepth (int depth) |
| bool | maxProcessingTimedOut () const |
| const float * | otherModelTriangle () const |
| The triangle that collided (in other model) More... | |
| int | otherTriangleId () const |
| The index of the triangle that collided (belongs to other model) More... | |
| void | computePoint () |
Public Member Functions inherited from Claudette::BaseCollisionTest | |
| BaseCollisionTest () | |
| ~BaseCollisionTest () | |
| bool | collides () const |
| Collision result, returns true if a collision was detected. More... | |
| const float * | modelTriangle () const |
| The triangle that collided (belongs to this model) More... | |
| int | triangleId () const |
| The index of the triangle that collided (belongs to this model) More... | |
| const float * | point () const |
| The detected collision point (array of 3 items containing x,y,z coords) More... | |
Friends | |
| class | CollisionModel3D |
Additional Inherited Members | |
Protected Member Functions inherited from Claudette::BaseCollisionTest | |
| float * | mutablePoint () |
Collision test between two meshes.
Definition at line 11 of file model_collision_test.h.
| Claudette::ModelCollisionTest::ModelCollisionTest | ( | ) |
| Claudette::ModelCollisionTest::~ModelCollisionTest | ( | ) |
| int Claudette::ModelCollisionTest::accuracyDepth | ( | ) | const |
| void Claudette::ModelCollisionTest::computePoint | ( | ) |
| bool Claudette::ModelCollisionTest::maxProcessingTimedOut | ( | ) | const |
| const CollisionModel3D* Claudette::ModelCollisionTest::otherModel | ( | ) | const |
| const float* Claudette::ModelCollisionTest::otherModelTransform | ( | ) | const |
Allows overriding the other model's transform, by supplying an alternative one.
This can be useful when testing a model against itself with different orientations.
| const float* Claudette::ModelCollisionTest::otherModelTriangle | ( | ) | const |
The triangle that collided (in other model)
| int Claudette::ModelCollisionTest::otherTriangleId | ( | ) | const |
The index of the triangle that collided (belongs to other model)
| void Claudette::ModelCollisionTest::setAccuracyDepth | ( | int | depth | ) |
| void Claudette::ModelCollisionTest::setOtherModel | ( | const CollisionModel3D * | other | ) |
| void Claudette::ModelCollisionTest::setOtherModelTransform | ( | const float | trsf[16] | ) |
|
friend |
Definition at line 41 of file model_collision_test.h.
1.8.8