CSGSphere

Refreshing Cache...

Inherits: CSGPrimitive < CSGShape < GeometryInstance < VisualInstance < Spatial < Node < Object

A CSG Sphere shape.

Description

This node allows you to create a sphere for use with the CSG system.

Property Descriptions

Setterset_material(value)
Getterget_material()

The material used to render the sphere.


  • int radial_segments
Default12
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of vertical slices for the sphere.


Default1.0
Setterset_radius(value)
Getterget_radius()

Radius of the sphere.


Default6
Setterset_rings(value)
Getterget_rings()

Number of horizontal slices for the sphere.


Defaulttrue
Setterset_smooth_faces(value)
Getterget_smooth_faces()

If true the normals of the sphere are set to give a smooth effect making the sphere seem rounded. If false the sphere will have a flat shaded look.

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:31:49. 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.