SphereMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a spherical PrimitiveMesh.

Description

Class representing a spherical PrimitiveMesh.

Property Descriptions

Default2.0
Setterset_height(value)
Getterget_height()

Full height of the sphere.


Defaultfalse
Setterset_is_hemisphere(value)
Getterget_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
Default64
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of radial segments on the sphere.


Default1.0
Setterset_radius(value)
Getterget_radius()

Radius of sphere.


Default32
Setterset_rings(value)
Getterget_rings()

Number of segments along the height of the sphere.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:39:46. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.