A cone collision geometry aligned with the y-axis.

Constructor

new(radius:Float, halfHeight:Float)

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

Methods

inlinegetHalfHeight():Float

Returns the half-height of the cone.

inlinegetRadius():Float

Returns the radius of the cone.

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.