W3cubDocs

/Godot 3.1

SphereMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Category: Core

Brief Description

Class representing a spherical PrimitiveMesh.

Properties

float height
bool is_hemisphere
int radial_segments
float radius
int rings

Description

Class representing a spherical PrimitiveMesh.

Property Descriptions

float height

Setter set_height(value)
Getter get_height()

Full height of the sphere. Defaults to 2.0.

bool is_hemisphere

Setter set_is_hemisphere(value)
Getter get_is_hemisphere()

Determines whether a full sphere or a hemisphere is created. Attention: To get a regular hemisphere, the height and radius of the sphere have to equal. Defaults to false.

int radial_segments

Setter set_radial_segments(value)
Getter get_radial_segments()

Number of radial segments on the sphere. Defaults to 64.

float radius

Setter set_radius(value)
Getter get_radius()

Radius of sphere. Defaults to 1.0.

int rings

Setter set_rings(value)
Getter get_rings()

Number of segments along the height of the sphere. Defaults to 32.

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