Cylinder

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

A cylinder shape centered around zero, with its length along the Y axis, defined by a half-height and radius.

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

Parameters

halfHeight

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

radius

The radius of the cylinder. 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