C4 Engine
C4 Engine API Documentation

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::GetShapeFlags Returns the shape flags.
ShapeObject::SetShapeFlags Sets the shape flags.
ShapeObject::GetShapeDensity Returns the density of a shape.
ShapeObject::SetShapeDensity Sets the density of a shape.
ShapeObject::GetShapeSubstance Returns the substance associated with a shape.
ShapeObject::SetShapeSubstance Sets the substance associated with a shape.
Constructor

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

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 Box shape.
kShapePyramid Pyramid shape.
kShapeCylinder Cylinder shape.
kShapeCone Cone shape.
kShapeSphere Sphere shape.
kShapeDome Dome shape.
kShapeCapsule Capsule shape.
kShapeTruncatedPyramid Truncated pyramid shape.
kShapeTruncatedCone Truncated cone shape.
kShapeTruncatedDome 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