Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

CapsuleMeshยถ

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a capsule-shaped PrimitiveMesh.

Descriptionยถ

Class representing a capsule-shaped PrimitiveMesh.

Propertiesยถ

float

height

2.0

int

radial_segments

64

float

radius

0.5

int

rings

8


Property Descriptionsยถ

float height = 2.0 ๐Ÿ”—

  • void set_height(value: float)

  • float get_height()

Total height of the capsule mesh (including the hemispherical ends).


int radial_segments = 64 ๐Ÿ”—

  • void set_radial_segments(value: int)

  • int get_radial_segments()

Number of radial segments on the capsule mesh.


float radius = 0.5 ๐Ÿ”—

  • void set_radius(value: float)

  • float get_radius()

Radius of the capsule mesh.


int rings = 8 ๐Ÿ”—

  • void set_rings(value: int)

  • int get_rings()

Number of rings along the height of the capsule.