Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HybridOBBCollider Class Reference

#include <OPC_OBBCollider.h>

Inheritance diagram for HybridOBBCollider:
OBBCollider VolumeCollider Collider

Public Member Functions

 HybridOBBCollider ()
 
virtual ~HybridOBBCollider ()
 
bool Collide (OBBCache &cache, const OBB &box, const HybridModel &model, const Matrix4x4 *worldb=null, const Matrix4x4 *worldm=null)
 
- Public Member Functions inherited from OBBCollider
 OBBCollider ()
 
virtual ~OBBCollider ()
 
bool Collide (OBBCache &cache, const OBB &box, const Model &model, const Matrix4x4 *worldb=null, const Matrix4x4 *worldm=null)
 
inline_ void SetFullBoxBoxTest (bool flag)
 
 override (Collider) const char *ValidateSettings()
 
- Public Member Functions inherited from VolumeCollider
 VolumeCollider ()
 
virtual ~VolumeCollider ()=0
 
inline_ udword GetNbTouchedPrimitives () const
 
inline_ const udwordGetTouchedPrimitives () const
 
inline_ udword GetNbVolumeBVTests () const
 
inline_ udword GetNbVolumePrimTests () const
 
 override (Collider) const char *ValidateSettings()
 
- Public Member Functions inherited from Collider
 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 Attributes

Container mTouchedBoxes
 
- Protected Attributes inherited from OBBCollider
Matrix3x3 mAR
 Absolute rotation matrix. More...
 
Matrix3x3 mRModelToBox
 Rotation from model space to obb space. More...
 
Matrix3x3 mRBoxToModel
 Rotation from obb space to model space. More...
 
Point mTModelToBox
 Translation from model space to obb space. More...
 
Point mTBoxToModel
 Translation from obb space to model space. More...
 
Point mBoxExtents
 
Point mB0
 
Point mB1
 
float mBBx1
 
float mBBy1
 
float mBBz1
 
float mBB_1
 
float mBB_2
 
float mBB_3
 
float mBB_4
 
float mBB_5
 
float mBB_6
 
float mBB_7
 
float mBB_8
 
float mBB_9
 
Point mLeafVerts [3]
 Triangle vertices. More...
 
bool mFullBoxBoxTest
 Perform full BV-BV tests (true) or SAT-lite tests (false) More...
 
- Protected Attributes inherited from VolumeCollider
ContainermTouchedPrimitives
 List of touched primitives. More...
 
Point mCenterCoeff
 
Point mExtentsCoeff
 
udword mNbVolumeBVTests
 Number of Volume-BV tests. More...
 
udword mNbVolumePrimTests
 Number of Volume-Primitive tests. More...
 
- Protected Attributes inherited from Collider
udword mFlags
 Bit flags. More...
 
const BaseModelmCurrentModel
 Current model for collision query (owner of touched faces) More...
 
const MeshInterfacemIMesh
 User-defined mesh interface. More...
 

Additional Inherited Members

- Protected Member Functions inherited from OBBCollider
void _Collide (const AABBCollisionNode *node)
 
void _Collide (const AABBNoLeafNode *node)
 
void _Collide (const AABBQuantizedNode *node)
 
void _Collide (const AABBQuantizedNoLeafNode *node)
 
void _CollideNoPrimitiveTest (const AABBCollisionNode *node)
 
void _CollideNoPrimitiveTest (const AABBNoLeafNode *node)
 
void _CollideNoPrimitiveTest (const AABBQuantizedNode *node)
 
void _CollideNoPrimitiveTest (const AABBQuantizedNoLeafNode *node)
 
inline_ bool OBBContainsBox (const Point &bc, const Point &be)
 
inline_ bool BoxBoxOverlap (const Point &extents, const Point &center)
 A dedicated version when one box is constant. More...
 
inline_ bool TriBoxOverlap ()
 A dedicated version where the box is constant. More...
 
bool InitQuery (OBBCache &cache, const OBB &box, const Matrix4x4 *worldb=null, const Matrix4x4 *worldm=null)
 

Detailed Description

Definition at line 130 of file OPC_OBBCollider.h.

Constructor & Destructor Documentation

HybridOBBCollider::HybridOBBCollider ( )
virtual HybridOBBCollider::~HybridOBBCollider ( )
virtual

Member Function Documentation

bool HybridOBBCollider::Collide ( OBBCache cache,
const OBB box,
const HybridModel model,
const Matrix4x4 worldb = null,
const Matrix4x4 worldm = null 
)

Member Data Documentation

Container HybridOBBCollider::mTouchedBoxes
protected

Definition at line 139 of file OPC_OBBCollider.h.


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