C4 Engine
C4 Engine API Documentation

class BoxGeometry

Defined in:  C4Primitives.h
The BoxGeometry class represents a box primitive node in a world.
Definition

class BoxGeometry final : public PrimitiveGeometry

Constructor

BoxGeometry(const Vector3D& size);

Parameters
size The size of the box.
Description
The BoxGeometry class represents a box primitive node in a world. In its local coordinate space, a box primitive has one of its corners at the origin, and the components of the size parameter define the extents of the box in the positive x, y, and z directions.

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

BoxGeometryObject