A cylinder collision geometry aligned with the y-axis.

Constructor

new(radius:Float, halfHeight:Float)

Creates a cylinder collision geometry of radius radius and half-height halfHeight.

Methods

inlinegetHalfHeight():Float

Returns the half-height of the cylinder.

inlinegetRadius():Float

Returns the radius of the cylinder.

Inherited Variables

Inherited Methods

Defined by ConvexGeometry

inlinegetGjkMergin():Float

Returns the GJK mergin around the "core" of the convex geometry.

inlinesetGjkMergin(gjkMergin:Float):Void

Sets the GJK mergin around the "core" to gjkMergin.

Defined by Geometry

inlinegetType():Int

Returns the type of the collision geometry.

See GeometryType for details.

inlinegetVolume():Float

Returns the volume of the collision geometry.