My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParaEngine::Collider Class Reference

base class for all colliders. More...

#include <Collider.h>

Inheritance diagram for ParaEngine::Collider:
ParaEngine::CAABBCollider ParaEngine::CRayCollider

Public Member Functions

BOOL GetContactStatus () const
 Gets the last collision status after a collision query. More...
 
BOOL FirstContactEnabled () const
 Gets the "first contact" mode. More...
 
BOOL TemporalCoherenceEnabled () const
 Gets the temporal coherence mode. More...
 
BOOL ContactFound () const
 Checks a first contact has already been found. More...
 
BOOL TemporalHit () const
 Checks there's been an early exit due to temporal coherence;. More...
 
BOOL SkipPrimitiveTests () const
 Checks primitive tests are enabled;. More...
 
void SetFirstContact (bool flag)
 Reports all contacts (false) or first contact only (true) More...
 
void SetTemporalCoherence (bool flag)
 Enable/disable temporal coherence. More...
 
void SetPrimitiveTests (bool flag)
 Enable/disable primitive tests. More...
 

Protected Member Functions

virtual void InitQuery ()
 Initializes a query.
 

Protected Attributes

DWORD mFlags
 Bit flags.
 

Detailed Description

base class for all colliders.

Member Function Documentation

§ ContactFound()

BOOL ParaEngine::Collider::ContactFound ( ) const
inline

Checks a first contact has already been found.

Returns
true if a first contact has been found and we can stop a query

§ FirstContactEnabled()

BOOL ParaEngine::Collider::FirstContactEnabled ( ) const
inline

Gets the "first contact" mode.

Returns
true if "first contact" mode is on

§ GetContactStatus()

BOOL ParaEngine::Collider::GetContactStatus ( ) const
inline

Gets the last collision status after a collision query.

Returns
true if a collision occurred

§ SetFirstContact()

void ParaEngine::Collider::SetFirstContact ( bool  flag)
inline

Reports all contacts (false) or first contact only (true)

Parameters
flag[in] true for first contact, false for all contacts
See also
SetTemporalCoherence(bool flag)
ValidateSettings()

§ SetPrimitiveTests()

void ParaEngine::Collider::SetPrimitiveTests ( bool  flag)
inline

Enable/disable primitive tests.

Parameters
flag[in] true to enable primitive tests, false to discard them

§ SetTemporalCoherence()

void ParaEngine::Collider::SetTemporalCoherence ( bool  flag)
inline

Enable/disable temporal coherence.

Parameters
flag[in] true to enable temporal coherence, false to discard it
See also
SetFirstContact(bool flag)
ValidateSettings()

§ SkipPrimitiveTests()

BOOL ParaEngine::Collider::SkipPrimitiveTests ( ) const
inline

Checks primitive tests are enabled;.

Returns
true if primitive tests must be skipped

§ TemporalCoherenceEnabled()

BOOL ParaEngine::Collider::TemporalCoherenceEnabled ( ) const
inline

Gets the temporal coherence mode.

Returns
true if temporal coherence is on

§ TemporalHit()

BOOL ParaEngine::Collider::TemporalHit ( ) const
inline

Checks there's been an early exit due to temporal coherence;.

Returns
true if a temporal hit has occured

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