torque Torque Game Engine Documentation
TGE Version 1.5.2

ShapeBaseConvex Class Reference

#include <shapeBase.h>

Inheritance diagram for ShapeBaseConvex:

Inheritance graph
[legend]

Public Member Functions

 ShapeBaseConvex ()
 ShapeBaseConvex (const ShapeBaseConvex &cv)
void findNodeTransform ()
const MatrixFgetTransform () const
 Returns the transform of the object this is built around.
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.
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

MatrixFtransform
U32 hullId
Box3F box

Protected Attributes

ShapeBasepShapeBase
MatrixFnodeTransform

Private Types

typedef Convex Parent

Friends

class ShapeBase
class Vehicle
class RigidShape

Member Typedef Documentation

typedef Convex ShapeBaseConvex::Parent [private]


Constructor & Destructor Documentation

ShapeBaseConvex::ShapeBaseConvex (  )  [inline]

ShapeBaseConvex::ShapeBaseConvex ( const ShapeBaseConvex cv  )  [inline]


Member Function Documentation

void ShapeBaseConvex::findNodeTransform (  ) 

const MatrixF& ShapeBaseConvex::getTransform (  )  const [virtual]

Returns the transform of the object this is built around.

Reimplemented from Convex.

Box3F ShapeBaseConvex::getBoundingBox (  )  const [virtual]

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

Reimplemented from Convex.

Box3F ShapeBaseConvex::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.

Point3F ShapeBaseConvex::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 ShapeBaseConvex::getFeatures ( const MatrixF mat,
const VectorF n,
ConvexFeature cf 
) [virtual]

Reimplemented from Convex.

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

Builds a collision poly list out of this convex.

Parameters:
list (Out) Poly list built

Reimplemented from Convex.


Friends And Related Function Documentation

friend class ShapeBase [friend]

friend class Vehicle [friend]

friend class RigidShape [friend]


Field Documentation




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