C4 Engine
C4 Engine API Documentation

class TruncatedPyramidShape

Defined in:  C4Shapes.h
The TruncatedPyramidShape class represents a truncated pyramid shape node in a world.

class TruncatedPyramidShape : public Shape


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

size The size of truncated pyramid base.
height The height of the truncated pyramid.
ratio The ratio of the size of the top face to the size of the bottom face (base) of the truncated pyramid.
The TruncatedPyramidShape class represents a shape node that is shaped like a truncated pyramid whose dimensions are specified by the size, height, and ratio parameters.
Base Classes
Shape A truncated pyramid shape is a specific type of shape.
See Also