JNR
|
Collision Domain. More...
#include <laCollisionDomain.h>
Public Member Functions | |
unsigned | countLines () const |
void | offset (const laPoint3 &offset) |
laPoint3 | offset () |
laCollisionDomain * | nextDomain () const |
void | setNextDomain (laCollisionDomain *pNext) |
void | optimize () |
laRect2 | boundingRect () |
void | updateBounds () |
laLine2 * | line (unsigned index) |
rpgTrap * | trap (unsigned index) |
laPoint2 * | normal (unsigned index) |
void | addLine (laPoint3 a, laPoint3 b, laPoint3 normal, rpgTrap *pTrap) |
void | addTriangle (const laPoint3 &a, const laPoint3 &b, const laPoint3 &c, rpgTrap *pTrap) |
void | draw (laRenderer *r, laPoint3 ptBasePos) |
Static Public Member Functions | |
static laPoint3 | normal (laPoint3 a, laPoint3 b, laPoint3 c) |
Protected Attributes | |
laLine2 | _arLines [M_MAX_COLLISION_DOMAIN_SZ] |
laPoint2 | _arNormals [M_MAX_COLLISION_DOMAIN_SZ] |
rpgTrap * | _arTrap [M_MAX_COLLISION_DOMAIN_SZ] |
unsigned | _nLineCnt |
laPoint3 | _offset |
laCollisionDomain * | _pNextDomain |
laRect2 | _rectBounds |
Collision Domain.
This class stores an array of 2D lines that are extracted from the 3D geometry of a level; Lines are constructed as an itersection of the 3D geometry with a plane. They are used for the purposes of collision detection for dynamic objects moving on this plane.
Definition at line 46 of file laCollisionDomain.h.