Collider Class Reference

Inherited by AABBRayCollider, AABBSphereCollider, and AABBTreeCollider.

List of all members.

Public Methods

 Collider ()
virtual ~Collider ()
__forceinline bool GetContactStatus () const
__forceinline void SetFirstContact (bool flag)
__forceinline void SetTemporalCoherence (bool flag)
virtual const char * ValidateSettings ()=0

Protected Attributes

bool mFirstContact
 Report all contacts (false) or only first one (true).

bool mTemporalCoherence
 Use temporal coherence or not.

bool mContact
 Final contact status after a collision query.


Detailed Description

Contains the abstract class for colliders.

Author:
Pierre Terdiman
Version:
1.0
Date:
June, 2, 2001


Constructor & Destructor Documentation

Collider::Collider  
 

Constructor.

Collider::~Collider   [virtual]
 

Destructor.


Member Function Documentation

__forceinline bool Collider::GetContactStatus   const [inline]
 

Gets the last collision status after a collision query.

Returns:
true if a collision occured

__forceinline void 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()

__forceinline void 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()

virtual const char* Collider::ValidateSettings   [inline, pure virtual]
 

Validates current settings. You should call this method after all the settings / callbacks have been defined for a collider.

Returns:
null if everything is ok, else a string describing the problem


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


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen