BoxConvex Class Reference

#include <boxConvex.h>

Inheritance diagram for BoxConvex:

Inheritance graph
[legend]
List of all members.

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.

Public Attributes

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.


Member Data Documentation