Claudette
 All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros
Public Member Functions | Friends | List of all members
Claudette::ModelCollisionTest Class Reference

Collision test between two meshes. More...

#include <model_collision_test.h>

Inheritance diagram for Claudette::ModelCollisionTest:
Claudette::BaseCollisionTest

Public Member Functions

 ModelCollisionTest ()
 
 ~ModelCollisionTest ()
 
const CollisionModel3DotherModel () 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 ()
 

Detailed Description

Collision test between two meshes.

Definition at line 11 of file model_collision_test.h.

Constructor & Destructor Documentation

Claudette::ModelCollisionTest::ModelCollisionTest ( )
Claudette::ModelCollisionTest::~ModelCollisionTest ( )

Member Function Documentation

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])

Friends And Related Function Documentation

friend class CollisionModel3D
friend

Definition at line 41 of file model_collision_test.h.


The documentation for this class was generated from the following file: