#include <OPC_Collider.h>
Public Member Functions | |
Collider () | |
inline_ BOOL | ContactFound () const |
inline_ BOOL | FirstContactEnabled () const |
inline_ BOOL | GetContactStatus () const |
inline_ void | SetFirstContact (bool flag) |
inline_ void | SetPrimitiveTests (bool flag) |
inline_ void | SetTemporalCoherence (bool flag) |
inline_ BOOL | SkipPrimitiveTests () const |
inline_ BOOL | TemporalCoherenceEnabled () const |
inline_ BOOL | TemporalHit () const |
virtual const char * | ValidateSettings ()=0 |
virtual | ~Collider () |
Protected Member Functions | |
virtual inline_ void | InitQuery () |
inline_ BOOL | Setup (const BaseModel *model) |
Protected Attributes | |
const BaseModel * | mCurrentModel |
Current model for collision query (owner of touched faces) More... | |
udword | mFlags |
Bit flags. More... | |
const MeshInterface * | mIMesh |
User-defined mesh interface. More... | |
Contains the abstract class for colliders.
Definition at line 37 of file OPC_Collider.h.
Collider::Collider | ( | ) |
Constructor.
Definition at line 40 of file OPC_Collider.cpp.
|
virtual |
Destructor.
Definition at line 52 of file OPC_Collider.cpp.
Checks a first contact has already been found.
Definition at line 76 of file OPC_Collider.h.
Gets the "first contact" mode.
Definition at line 60 of file OPC_Collider.h.
Gets the last collision status after a collision query.
Definition at line 52 of file OPC_Collider.h.
Initializes a query
Definition at line 173 of file OPC_Collider.h.
Reports all contacts (false) or first contact only (true)
flag | [in] true for first contact, false for all contacts |
Definition at line 104 of file OPC_Collider.h.
Enable/disable primitive tests.
flag | [in] true to enable primitive tests, false to discard them |
Definition at line 130 of file OPC_Collider.h.
Enable/disable temporal coherence.
flag | [in] true to enable temporal coherence, false to discard it |
Definition at line 118 of file OPC_Collider.h.
Setups current collision model
model | [in] current collision model |
Definition at line 158 of file OPC_Collider.h.
Checks primitive tests are enabled;
Definition at line 92 of file OPC_Collider.h.
Gets the temporal coherence mode.
Definition at line 68 of file OPC_Collider.h.
Checks there's been an early exit due to temporal coherence;
Definition at line 84 of file OPC_Collider.h.
|
pure virtual |
Validates current settings. You should call this method after all the settings / callbacks have been defined for a collider.
Current model for collision query (owner of touched faces)
Definition at line 146 of file OPC_Collider.h.
|
protected |
Bit flags.
Definition at line 145 of file OPC_Collider.h.
|
protected |
User-defined mesh interface.
Definition at line 148 of file OPC_Collider.h.