JNR
laCollisionDomain Class Reference

Collision Domain. More...

#include <laCollisionDomain.h>

Public Member Functions

unsigned countLines () const
 
void offset (const laPoint3 &offset)
 
laPoint3 offset ()
 
laCollisionDomainnextDomain () const
 
void setNextDomain (laCollisionDomain *pNext)
 
void optimize ()
 
laRect2 boundingRect ()
 
void updateBounds ()
 
laLine2line (unsigned index)
 
rpgTraptrap (unsigned index)
 
laPoint2normal (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
 

Detailed Description

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.

Author
Copyright (C) 2007-2013 Atanas Laskov, latan.nosp@m.as@g.nosp@m.mail..nosp@m.com

Definition at line 46 of file laCollisionDomain.h.


The documentation for this class was generated from the following files: