|
typedef std::vector< OctreeNode * > | OctreeNodeCollection |
|
|
OctreeNodeCollection | getAllNodes () const |
|
void | addNodes (OctreeNode *pNode, OctreeNodeCollection &nodes) const |
|
void | drawAt (int depth, const Vect &color, const OctreeNode *pNode) const |
|
◆ computeData()
void CollisionVolumeOctree::computeData |
( |
Model * |
pModel, |
|
|
const Matrix & |
worldMatrix |
|
) |
| |
|
overridevirtual |
Calculates the data.
- Parameters
-
pModel | [in,out] If non-null, the model. |
worldMatrix | The world matrix. |
Implements CollisionVolume.
◆ debugDraw()
void CollisionVolumeOctree::debugDraw |
( |
const Vect & |
color, |
|
|
int |
depth |
|
) |
| const |
|
overridevirtual |
Draws it collision volume.
Used for debuggin purposes. Depth value is used only for Octree collision value. All other collision volumes ignore it.
- Parameters
-
color | the color to render the collision volume. |
depth | the depth to render collision volume. |
Implements CollisionVolume.
◆ intersectAccept()
bool CollisionVolumeOctree::intersectAccept |
( |
const CollisionVolume & |
collisionVolume | ) |
const |
|
overridevirtual |
Accepts a collision volume to perform intersect test.
Uses Visitor Pattern. This is the first step of the process. Then calls on intersectVisitor().
- Parameters
-
collisionVolume | a collision volume. |
Implements CollisionVolume.
◆ intersectVisitor() [1/4]
Visits a collision volume AABB to perform intersect test.
Uses Visitor Pattern. This is the second step of the process.
- Parameters
-
AABB | a collision volume AABB. |
Implements CollisionVolume.
◆ intersectVisitor() [2/4]
Visits a collision volume BSphere to perform intersect test.
Uses Visitor Pattern. This is the second step of the process.
- Parameters
-
collisionBSphere | a collision volume BSphere. |
Implements CollisionVolume.
◆ intersectVisitor() [3/4]
Visits a collision volume OBB to perform intersect test.
Uses Visitor Pattern. This is the second step of the process.
- Parameters
-
OBB | a collision volume OBB. |
Implements CollisionVolume.
◆ intersectVisitor() [4/4]
Visits a collision volume Octree to perform intersect test.
Uses Visitor Pattern. This is the second step of the process.
- Parameters
-
Octree | a collision volume Octree. |
Implements CollisionVolume.
The documentation for this class was generated from the following files: