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

Material

material

int

radial_segments

12

float

radius

0.5

int

rings

6

bool

smooth_faces

true


Property Descriptions

Materialmaterial🔗

The material used to render the sphere.


intradial_segments =12🔗

Number of vertical slices for the sphere.


floatradius =0.5🔗

Radius of the sphere.


intrings =6🔗

Number of horizontal slices for the sphere.


boolsmooth_faces =true🔗

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.


User-contributed notes

Please read theUser-contributed notes policy before submitting a comment.