On this page
SphereMesh
Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object
Class representing a spherical PrimitiveMesh.
Description
Class representing a spherical PrimitiveMesh.
Properties
|
||
|
||
|
||
|
||
|
Property Descriptions
float height
Default |
|
Setter |
set_height(value) |
Getter |
get_height() |
Full height of the sphere.
bool is_hemisphere
Default |
|
Setter |
set_is_hemisphere(value) |
Getter |
get_is_hemisphere() |
If true
, a hemisphere is created rather than a full sphere.
Note: To get a regular hemisphere, the height and radius of the sphere must be equal.
int radial_segments
Default |
|
Setter |
set_radial_segments(value) |
Getter |
get_radial_segments() |
Number of radial segments on the sphere.
float radius
Default |
|
Setter |
set_radius(value) |
Getter |
get_radius() |
Radius of sphere.
int rings
Default |
|
Setter |
set_rings(value) |
Getter |
get_rings() |
Number of segments along the height of the sphere.
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_spheremesh.html