Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <OPC_AABBCollider.h>
Protected Attributes | |
CollisionAABB | mBox |
Query box in (center, extents) form. More... | |
Point | mMin |
Query box min point. More... | |
Point | mMax |
Query box max point. More... | |
Point | mLeafVerts [3] |
Triangle vertices. 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 AABB-vs-tree collider.
Definition at line 37 of file OPC_AABBCollider.h.
AABBCollider::AABBCollider | ( | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
A special version for 2 axis-aligned boxes.
Definition at line 112 of file OPC_BoxBoxOverlap.h.
References FALSE, GREATER, mBox, CollisionAABB::mCenter, CollisionAABB::mExtents, VolumeCollider::mNbVolumeBVTests, TRUE, Point::x, Point::y, and Point::z.
bool AABBCollider::Collide | ( | AABBCache & | cache, |
const CollisionAABB & | box, | ||
const Model & | model | ||
) |
Generic collision query for generic OPCODE models. After the call, access the results:
cache | [in/out] a box cache |
box | [in] collision AABB in world space |
model | [in] Opcode model to collide with |
bool AABBCollider::Collide | ( | AABBCache & | cache, |
const CollisionAABB & | box, | ||
const AABBTree * | tree | ||
) |
|
protected |
...and another one, jeez
Definition at line 259 of file OPC_TriBoxOverlap.h.
References center, d, FALSE, FINDMINMAX, IMPLEMENT_CLASS3_TESTS, max(), mBox, CollisionAABB::mCenter, CollisionAABB::mExtents, min(), mLeafVerts, VolumeCollider::mNbVolumePrimTests, planeBoxOverlap(), TRUE, Point::x, Point::y, and Point::z.
|
protected |
Query box in (center, extents) form.
Definition at line 62 of file OPC_AABBCollider.h.
Referenced by AABBAABBOverlap(), and TriBoxOverlap().
|
protected |
|
protected |
Query box max point.
Definition at line 64 of file OPC_AABBCollider.h.
|
protected |
Query box min point.
Definition at line 63 of file OPC_AABBCollider.h.