C4 Engine
C4 Engine API Documentation

class TruncatedConeShapeObject

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

class TruncatedConeShapeObject : public ShapeObject, public TruncatedConeVolume

Constructor

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

Parameters
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.
Description
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

TruncatedConeShape