|
Public Member Functions | |
AtlasConvex () | |
AtlasConvex (const AtlasConvex &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 | |
AtlasGeomChunk * | geom |
The chunk that created us. | |
U16 | offset |
Offset into that chunk's VB. | |
Point3F | point [4] |
VectorF | normal |
Box3F | box |
Our bounding box. | |
Friends | |
class | AtlasGeomChunk |
AtlasConvex::AtlasConvex | ( | ) | [inline] |
AtlasConvex::AtlasConvex | ( | const AtlasConvex & | cv | ) | [inline] |
Box3F AtlasConvex::getBoundingBox | ( | ) | const [virtual] |
Returns the bounding box for the object this is built around in world space.
Reimplemented from Convex.
Returns the object space bounding box for the object this is built around transformed and scaled.
mat | Matrix to transform the object-space box by | |
scale | Scaling factor to scale the bounding box by |
Reimplemented from Convex.
void AtlasConvex::getFeatures | ( | const MatrixF & | mat, | |
const VectorF & | n, | |||
ConvexFeature * | cf | |||
) | [virtual] |
Reimplemented from Convex.
void AtlasConvex::getPolyList | ( | AbstractPolyList * | list | ) | [virtual] |
Builds a collision poly list out of this convex.
list | (Out) Poly list built |
Reimplemented from Convex.
friend class AtlasGeomChunk [friend] |
AtlasGeomChunk* AtlasConvex::geom [private] |
The chunk that created us.
U16 AtlasConvex::offset [private] |
Offset into that chunk's VB.
Point3F AtlasConvex::point[4] [private] |
VectorF AtlasConvex::normal [private] |
Box3F AtlasConvex::box [private] |
Our bounding box.