createCapsule

@JvmStatic
fun createCapsule(height: Float, radius: Float): ShapeResource

Creates a capsule-shaped ShapeResource with the specified height and radius.

Return

A new ShapeResource representing the capsule.

Parameters

height

The total height of the capsule, including the spherical caps, in meters.

radius

The radius of the capsule in meters.