C4 Engine
C4 Engine API Documentation

class PyramidGeometry

Defined in:  C4Primitives.h
The PyramidGeometry class represents a pyramid primitive node in a world.
Definition

class PyramidGeometry final : public PrimitiveGeometry

Constructor

PyramidGeometry(const Vector2D& size, float height);

Parameters
size The size of the pyramid base.
height The height of the pyramid.
Description
The PyramidGeometry class represents a pyramid primitive node in a world. In its local coordinate space, a pyramid primitive has one of the corners of its base at the origin, and the components of the size parameter define the extents of the base in the positive x and y directions. The height parameter defines the height of the pyramid's apex above the base in the positive z direction.

When a new pyramid geometry is created, the corresponding PyramidGeometryObject is automatically created and referenced by the geometry node.
Base Classes
PrimitiveGeometry A pyramid is a specific type of primitive geometry.
See Also

PyramidGeometryObject