CSGSphere3D
Inherits:CSGPrimitive3D<CSGShape3D<GeometryInstance3D<VisualInstance3D<Node3D<Node<Object
A CSG Sphere shape.
Description
This node allows you to create a sphere for use with the CSG system.
Note: CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating aMeshInstance3D with aPrimitiveMesh. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.
Tutorials
Properties
| ||
| ||
| ||
|
Property Descriptions
Materialget_material()
The material used to render the sphere.
intget_radial_segments()
Number of vertical slices for the sphere.
floatget_radius()
Radius of the sphere.
intget_rings()
Number of horizontal slices for the sphere.
boolget_smooth_faces()
Iftrue
the normals of the sphere are set to give a smooth effect making the sphere seem rounded. Iffalse
the sphere will have a flat shaded look.