Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Opcode.h>
Public Member Functions | |
Collider () | |
virtual | ~Collider () |
inline_ BOOL | GetContactStatus () const |
inline_ BOOL | FirstContactEnabled () const |
inline_ BOOL | TemporalCoherenceEnabled () const |
inline_ BOOL | ContactFound () const |
inline_ BOOL | TemporalHit () const |
inline_ BOOL | SkipPrimitiveTests () const |
inline_ void | SetFirstContact (bool flag) |
inline_ void | SetTemporalCoherence (bool flag) |
inline_ void | SetPrimitiveTests (bool flag) |
virtual const char * | ValidateSettings ()=0 |
Protected Member Functions | |
inline_ BOOL | Setup (const BaseModel *model) |
virtual inline_ void | InitQuery () |
Protected Attributes | |
udword | mFlags |
Bit flags. More... | |
const BaseModel * | mCurrentModel |
Current model for collision query (owner of touched faces) More... | |
const MeshInterface * | mIMesh |
User-defined mesh interface. More... | |
Collider::Collider | ( | ) |
Constructor.
Definition at line 40 of file OPC_Collider.cpp.
|
virtual |
Gets the "first contact" mode.
Definition at line 61 of file Opcode.h.
Referenced by csOPCODECollider::GetOneHitOnly().
Gets the last collision status after a collision query.
Definition at line 53 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
inlineprotectedvirtual |
Initializes a query
Definition at line 174 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
Reports all contacts (false) or first contact only (true)
flag | [in] true for first contact, false for all contacts |
Definition at line 105 of file Opcode.h.
Referenced by Opcode::Picking(), Opcode::SetupAllHits(), Opcode::SetupClosestHit(), Opcode::SetupInOutTest(), and Opcode::SetupShadowFeeler().
Enable/disable temporal coherence.
flag | [in] true to enable temporal coherence, false to discard it |
Definition at line 119 of file Opcode.h.
Referenced by Opcode::Picking().
Setups current collision model
model | [in] current collision model |
Definition at line 159 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
pure virtual |
Validates current settings. You should call this method after all the settings / callbacks have been defined for a collider.
|
protected |
Current model for collision query (owner of touched faces)
Definition at line 147 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
protected |
Bit flags.
Definition at line 146 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().
|
protected |
User-defined mesh interface.
Definition at line 149 of file Opcode.h.
Referenced by Opcode::HybridSphereCollider::Collide(), Opcode::HybridAABBCollider::Collide(), Opcode::HybridLSSCollider::Collide(), Opcode::HybridPlanesCollider::Collide(), and Opcode::HybridOBBCollider::Collide().