C4 Engine
C4 Engine API Documentation

class TruncatedConeShapeObject

Defined in:  C4Shapes.h
The TruncatedConeShapeObject class encapsulates data pertaining to a truncated cone shape.

class TruncatedConeShapeObject : public ShapeObject, public TruncatedConeVolume


TruncatedConeShapeObject(const Vector2D& size, float height, float ratio);

size The size of truncated cone base.
height The height of the truncated cone.
ratio The ratio of the size of the top face to the size of the bottom face (base) of the truncated cone.
The TruncatedConeShapeObject class encapsulates a physics shape that is a truncated cone whose dimensions are specified by the size, height, and ratio parameters.
Base Classes
ShapeObject A TruncatedConeShapeObject is an object that can be shared by multiple truncated cone shape nodes.
TruncatedConeVolume A TruncatedConeShapeObject is represented by a generic truncated cone volume.
See Also