On this page
CapsuleMesh
Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object
Class representing a capsule-shaped PrimitiveMesh.
Description
Class representing a capsule-shaped PrimitiveMesh.
Properties
|
||
|
||
|
||
|
Property Descriptions
float mid_height
Default |
|
Setter |
set_mid_height(value) |
Getter |
get_mid_height() |
Height of the middle cylindrical part of the capsule (without the hemispherical ends).
Note: The capsule's total height is equal to mid_height + 2 * radius.
int radial_segments
Default |
|
Setter |
set_radial_segments(value) |
Getter |
get_radial_segments() |
Number of radial segments on the capsule mesh.
float radius
Default |
|
Setter |
set_radius(value) |
Getter |
get_radius() |
Radius of the capsule mesh.
int rings
Default |
|
Setter |
set_rings(value) |
Getter |
get_rings() |
Number of rings along the height of the capsule.
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_capsulemesh.html