Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Opcode.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... | |
OBBCollider::OBBCollider | ( | ) |
Constructor.
Definition at line 63 of file OPC_OBBCollider.cpp.
|
virtual |
|
protected |
Recursive collision query for normal AABB trees.
node | [in] current collision node |
Definition at line 412 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for no-leaf AABB trees.
node | [in] current collision node |
Definition at line 530 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for quantized AABB trees.
node | [in] current collision node |
Definition at line 466 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for quantized no-leaf AABB trees.
node | [in] current collision node |
Definition at line 574 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for normal AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 439 of file OPC_OBBCollider.cpp.
Referenced by Opcode::HybridOBBCollider::Collide().
|
protected |
Recursive collision query for no-leaf AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 552 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for quantized AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 498 of file OPC_OBBCollider.cpp.
|
protected |
Recursive collision query for quantized no-leaf AABB trees, without primitive tests.
node | [in] current collision node |
Definition at line 601 of file OPC_OBBCollider.cpp.
|
protected |
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 |
Definition at line 105 of file OPC_OBBCollider.cpp.
|
protected |
Initializes a collision query :
cache | [in/out] a box cache |
box | [in] obb in local space |
worldb | [in] obb's world matrix, or null |
worldm | [in] model's world matrix, or null |
Definition at line 178 of file OPC_OBBCollider.cpp.
Checks the OBB completely contains the box. In which case we can end the query sooner.
bc | [in] box center |
be | [in] box extents |
Definition at line 347 of file OPC_OBBCollider.cpp.
Opcode::OBBCollider::override | ( | Collider | ) | const |
Validates current settings. You should call this method after all the settings and callbacks have been defined for a collider.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |