TSStaticPolysoupConvex Class Reference

#include <tsStatic.h>

Inheritance diagram for TSStaticPolysoupConvex:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TSStaticPolysoupConvex ()
 ~TSStaticPolysoupConvex ()
Box3F getBoundingBox () const
 Returns the bounding box for the object this is built around in world space.
Box3F getBoundingBox (const MatrixF &mat, const Point3F &scale) const
 Returns the object space bounding box for the object this is built around transformed and scaled.
void getFeatures (const MatrixF &mat, const VectorF &n, ConvexFeature *cf)
void getPolyList (AbstractPolyList *list)
 Builds a collision poly list out of this convex.
Point3F support (const VectorF &v) const
 Returns the farthest point, along a vector, still bound by the convex.

Public Attributes

Box3F box
Point3F verts [4]
PlaneF normal
S32 idx
TSMeshmesh

Static Public Attributes

static SceneObjectsmCurObject

Private Types

typedef Convex Parent

Friends

class TSMesh

Member Typedef Documentation


Constructor & Destructor Documentation

TSStaticPolysoupConvex::TSStaticPolysoupConvex (  ) 

TSStaticPolysoupConvex::~TSStaticPolysoupConvex (  )  [inline]


Member Function Documentation

Box3F TSStaticPolysoupConvex::getBoundingBox (  )  const [virtual]

Returns the bounding box for the object this is built around in world space.

Reimplemented from Convex.

Box3F TSStaticPolysoupConvex::getBoundingBox ( const MatrixF mat,
const Point3F scale 
) const [virtual]

Returns the object space bounding box for the object this is built around transformed and scaled.

Parameters:
mat Matrix to transform the object-space box by
scale Scaling factor to scale the bounding box by

Reimplemented from Convex.

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

Reimplemented from Convex.

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

Builds a collision poly list out of this convex.

Parameters:
list (Out) Poly list built

Reimplemented from Convex.

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

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

Parameters:
v Vector

Reimplemented from Convex.


Friends And Related Function Documentation

friend class TSMesh [friend]


Member Data Documentation