W3cubDocs

/Godot 3.1

CapsuleMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Category: Core

Brief Description

Class representing a capsule-shaped PrimitiveMesh.

Properties

float mid_height
int radial_segments
float radius
int rings

Description

Class representing a capsule-shaped PrimitiveMesh.

Property Descriptions

float mid_height

Setter set_mid_height(value)
Getter get_mid_height()

Height of the capsule mesh from the center point. Defaults to 1.0.

int radial_segments

Setter set_radial_segments(value)
Getter get_radial_segments()

Number of radial segments on the capsule mesh. Defaults to 64.

float radius

Setter set_radius(value)
Getter get_radius()

Radius of the capsule mesh. Defaults to 1.0.

int rings

Setter set_rings(value)
Getter get_rings()

Number of rings along the height of the capsule. Defaults to 8.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_capsulemesh.html