C4 Engine
C4 Engine API Documentation

class ConeGeometry

Defined in:  C4Primitives.h
The ConeGeometry class represents a cone primitive node in a world.
Definition

class ConeGeometry final : public PrimitiveGeometry

Constructor

ConeGeometry(const Vector2D& size, float height);

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

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

ConeGeometryObject