C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class ShapeObject

Defined in:  C4Shapes.h
The ShapeObject class encapsulates data pertaining to a physics shape.
Definition

class ShapeObject : public Object, public VolumeObject

Member Functions
ShapeObject::GetShapeType Returns the specific type of a shape.
ShapeObject::GetShapeDensity Returns the density of a shape.
ShapeObject::SetShapeDensity Sets the density of a shape.
Constructor

ShapeObject(ShapeType type, const ShapeMesh *mesh, const Point3D *vertex, Volume *volume);

The constructor has protected access. The ShapeObject class can only exist as the base class for another class.
Parameters
type The type of the shape. See below for a list of possible types.
volume A pointer to the generic volume object representing the shape.
Description
The ShapeObject class encapsulates data describing a shape used to define the volume of a rigid body.

A shape object can be of one of the following types.
kShapeBox A box shape.
kShapePyramid A pyramid shape.
kShapeCylinder A cylinder shape.
kShapeCone A cone shape.
kShapeSphere A sphere shape.
kShapeDome A dome shape.
kShapeCapsule A capsule shape.
kShapeTruncatedPyramid A truncated pyramid shape.
kShapeTruncatedCone A truncated cone shape.
kShapeTruncatedDome A truncated dome shape.
Base Classes
Object A FieldObject is an object that can be shared by multiple field nodes.
VolumeObject Used internally by the engine for generic volume objects.
See Also
Shape

RigidBodyController