CapsuleOption

class CapsuleOption(height: Float, radius: Float)

Option for creating a capsule MeshResource.

Chainable setters are provided to configure the capsule. Each setter returns this instance.

Parameters

height

The height of the capsule (including the two end hemispheres), in meters. Must be greater than 0.

radius

The radius of the capsule, in meters. Must be greater than 0.

Constructors

Link copied to clipboard
constructor(height: Float, radius: Float)

Functions

Link copied to clipboard

Sets the axis the capsule is aligned with.

Link copied to clipboard
fun setName(name: String?): CapsuleOption

Sets the debug name of the resulting mesh.

Link copied to clipboard

Sets the capsule topology.