Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <OPC_OBBCollider.h>
Protected Attributes | |
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... | |
![]() | |
Container * | mTouchedPrimitives |
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... | |
![]() | |
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... | |
Contains an OBB-vs-tree collider.
Definition at line 38 of file OPC_OBBCollider.h.
OBBCollider::OBBCollider | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
A dedicated version when one box is constant.
Definition at line 68 of file OPC_BoxBoxOverlap.h.
References FALSE, GREATER, Matrix3x3::m, mAR, mBB_1, mBB_2, mBB_3, mBB_4, mBB_5, mBB_6, mBB_7, mBB_8, mBB_9, mBBx1, mBBy1, mBBz1, mBoxExtents, mFullBoxBoxTest, VolumeCollider::mNbVolumeBVTests, mRBoxToModel, mTBoxToModel, TRUE, Point::x, Point::y, and Point::z.
bool OBBCollider::Collide | ( | OBBCache & | cache, |
const OBB & | box, | ||
const Model & | model, | ||
const Matrix4x4 * | worldb = null , |
||
const Matrix4x4 * | worldm = null |
||
) |
Generic collision query for generic OPCODE models. After the call, access the results:
cache | [in/out] a box cache |
box | [in] collision OBB in local space |
model | [in] Opcode model to collide with |
worldb | [in] OBB's world matrix, or null |
worldm | [in] model's world matrix, or null |
|
protected |
OBBCollider::override | ( | Collider | ) | const |
Validates current settings. You should call this method after all the settings and callbacks have been defined for a collider.
Settings: select between full box-box tests or "SAT-lite" tests (where Class III axes are discarded)
flag | [in] true for full tests, false for coarse tests |
Definition at line 71 of file OPC_OBBCollider.h.
A dedicated version where the box is constant.
Definition at line 198 of file OPC_TriBoxOverlap.h.
References d, FALSE, FINDMINMAX, IMPLEMENT_CLASS3_TESTS, max(), mBoxExtents, min(), mLeafVerts, VolumeCollider::mNbVolumePrimTests, planeBoxOverlap(), TRUE, Point::x, Point::y, and Point::z.
|
protected |
Absolute rotation matrix.
Definition at line 85 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 92 of file OPC_OBBCollider.h.
|
protected |
Definition at line 93 of file OPC_OBBCollider.h.
|
protected |
Definition at line 99 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 100 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 101 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 102 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 103 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 104 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 105 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 106 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 107 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 95 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 96 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 97 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Definition at line 91 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap(), and TriBoxOverlap().
|
protected |
Perform full BV-BV tests (true) or SAT-lite tests (false)
Definition at line 112 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
|
protected |
Rotation from obb space to model space.
Definition at line 87 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Rotation from model space to obb space.
Definition at line 86 of file OPC_OBBCollider.h.
|
protected |
Translation from obb space to model space.
Definition at line 89 of file OPC_OBBCollider.h.
Referenced by BoxBoxOverlap().
|
protected |
Translation from model space to obb space.
Definition at line 88 of file OPC_OBBCollider.h.