W3cubDocs

/Godot 4.2

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 ( float value )
  • float get_height ( )

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

int radial_segments = 64

  • void set_radial_segments ( int value )
  • int get_radial_segments ( )

Number of radial segments on the capsule mesh.

float radius = 0.5

  • void set_radius ( float value )
  • float get_radius ( )

Radius of the capsule mesh.

int rings = 8

  • void set_rings ( int value )
  • int get_rings ( )

Number of rings along the height of the capsule.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_capsulemesh.html