Cone

@ConfigSerializable
data class Cone(val halfHeight: Double, val radius: Double, val margin: Double = DEFAULT_MARGIN) : Geometry

A cone shape centered around zero, with its length along the Y axis, defined by a half-height and radius. The shape starts at its largest radius at the bottom, and approaches zero at the top.

Note: the axis that the cone rests on cannot be defined here. Instead, transform the collider that the shape is placed on.

Parameters

halfHeight

The half-height of the cone. Must be greater than 0.

radius

The radius of the cone. Must be greater than 0.

Constructors

Link copied to clipboard
constructor(halfHeight: Double, radius: Double, margin: Double = DEFAULT_MARGIN)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard