torque Torque Game Engine Documentation
TGE Version 1.5.2

TerrainConvex Class Reference

#include <terrData.h>

Inheritance diagram for TerrainConvex:

Inheritance graph
[legend]

Public Member Functions

 TerrainConvex ()
 TerrainConvex (const TerrainConvex &cv)
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.

Private Attributes

TerrainConvexsquare
 Alternate convex if square is concave.
bool halfA
 Which half of square.
bool split45
 Square split pattern.
U32 squareId
 Used to match squares.
U32 material
Point3F point [4]
 3-4 vertices
VectorF normal [2]
Box3F box
 Bounding box.

Friends

class TerrainBlock

Constructor & Destructor Documentation

TerrainConvex::TerrainConvex (  )  [inline]

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


Member Function Documentation

Box3F TerrainConvex::getBoundingBox (  )  const [virtual]

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

Reimplemented from Convex.

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

Reimplemented from Convex.

void TerrainConvex::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 TerrainBlock [friend]


Field Documentation

Alternate convex if square is concave.

bool TerrainConvex::halfA [private]

Which half of square.

bool TerrainConvex::split45 [private]

Square split pattern.

Used to match squares.

3-4 vertices

Bounding box.




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