torque Torque Game Engine Documentation
TGE Version 1.5.2

BoxConvex Class Reference

#include <boxConvex.h>

Inheritance diagram for BoxConvex:

Inheritance graph
[legend]

Public Member Functions

 BoxConvex ()
void init (SceneObject *obj)
Point3F support (const VectorF &v) const
 Returns the farthest point, along a vector, still bound by the convex.
void getFeatures (const MatrixF &mat, const VectorF &n, ConvexFeature *cf)
void getPolyList (AbstractPolyList *list)
 Builds a collision poly list out of this convex.

Data Fields

Point3F mCenter
VectorF mSize

Private Member Functions

Point3F getVertex (S32 v)
void emitEdge (S32 v1, S32 v2, const MatrixF &mat, ConvexFeature *cf)
void emitFace (S32 fi, const MatrixF &mat, ConvexFeature *cf)

Constructor & Destructor Documentation

BoxConvex::BoxConvex (  )  [inline]


Member Function Documentation

Point3F BoxConvex::getVertex ( S32  v  )  [private]

void BoxConvex::emitEdge ( S32  v1,
S32  v2,
const MatrixF mat,
ConvexFeature cf 
) [private]

void BoxConvex::emitFace ( S32  fi,
const MatrixF mat,
ConvexFeature cf 
) [private]

void BoxConvex::init ( SceneObject obj  )  [inline]

Point3F BoxConvex::support ( const VectorF v  )  const [virtual]

Returns the farthest point, along a vector, still bound by the convex.

Parameters:
v Vector

Reimplemented from Convex.

void BoxConvex::getFeatures ( const MatrixF mat,
const VectorF n,
ConvexFeature cf 
) [virtual]

Reimplemented from Convex.

void BoxConvex::getPolyList ( AbstractPolyList list  )  [virtual]

Builds a collision poly list out of this convex.

Parameters:
list (Out) Poly list built

Reimplemented from Convex.


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen