Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CapsuleMesh
Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object
Class representing a capsule-shaped PrimitiveMesh.
Description
Class representing a capsule-shaped PrimitiveMesh.
Properties
|
||
|
||
|
||
|
Property Descriptions
Total height of the capsule mesh (including the hemispherical ends).
Note: The height of a capsule must be at least twice its radius. Otherwise, the capsule becomes a circle. If the height is less than twice the radius, the properties adjust to a valid value.
Number of radial segments on the capsule mesh.
Radius of the capsule mesh.
Note: The radius of a capsule cannot be greater than half of its height. Otherwise, the capsule becomes a circle. If the radius is greater than half of the height, the properties adjust to a valid value.
Number of rings along the height of the capsule.