class csCollider | | _cd_state If true this is an active collision object. |
| | _rm The internal collision object. |
| | boxesTested The number of boxes tested. |
| | firstHit Test only up to the 1st hit. |
| | minBBoxDiam just return with the results so far. |
| | mR Matrix, and Vector used for collision testing. |
| | numHits Number of hits recorded. |
| | testLevel Number of levels to test. |
| | trianglesTested probably isn't very good. |
| | Activate (bool on) Enable collision detection for this object. |
| | AddTriangle (int id, const csVector3 &p1, const csVector3 &p2, const csVector3 &p3) Add a triangle to the model |
| | CD_model (int n_triangles) Create a model object given number of triangles |
| | CollidePair (csCollider *c1, csCollider *c2, csTransform *t1 =0, csTransform *t2 = 0) Test collision detection between two objects. |
| | CollideRecursive (BBox *b1, BBox *b2, csMatrix3 R, csVector3 T) Recursively test collisions of bounding boxes. |
| | CollideReset () Reset the collision hits vector. |
| | csCollider (csPolygonSet *ps) Create a collider based on a csPolygonSet. |
| | csCollider (csSprite3D *sp) Create a collider based on a Sprite3D. |
| | DestroyBbox () Delete and free memory of this objects oriented bounding box. |
| | FindCollision (CDTriangle **tr1 = 0, CDTriangle **tr2 = 0) Find the first collision that involved this object, and return who it was |
| | GetBbox (void) Get top level bounding box. |
| | GetName () Get objects name. |
| | Report (csCollider **id1, csCollider **id2) Get the next collision from the queue. Removes collision from queue. |
| | ~csCollider () Destroy the collider object. |
| | If the number of triangles tested is too high the BBox structure |
| | If bbox is less than this size, dont bother testing further, |
| | Statistics, to allow early bailout. |
| | Global variables |
int AddTriangle(int id, const csVector3 &p1, const csVector3 &p2, const csVector3 &p3)
int _cd_state
CD_model* _rm
static csMatrix3 mR
static int trianglesTested
static int boxesTested
static float minBBoxDiam
static int testLevel
static bool firstHit
static int numHits
csCollider(csPolygonSet *ps)
csCollider(csSprite3D *sp)
virtual ~csCollider()
void Activate(bool on)
const char* GetName()
void DestroyBbox()
static int CollideRecursive(BBox *b1, BBox *b2, csMatrix3 R, csVector3 T)
static void CollideReset()
static int CollidePair(csCollider *c1, csCollider *c2, csTransform *t1 =0, csTransform *t2 = 0)
static int Report(csCollider **id1, csCollider **id2)
csCollider* FindCollision(CDTriangle **tr1 = 0, CDTriangle **tr2 = 0)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de