CSGSphere3D

Hereda: CSGPrimitive3D < CSGShape3D < GeometryInstance3D < VisualInstance3D < Node3D < Node < Object

Una forma de esfera CSG.

Descripción

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 a MeshInstance3D with a PrimitiveMesh. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.

Tutoriales

Propiedades

Material

material

int

radial_segments

12

float

radius

0.5

int

rings

6

bool

smooth_faces

true


Descripciones de Propiedades

Material material 🔗

El material utilizado para la fabricación de la esfera.


int radial_segments = 12 🔗

  • void set_radial_segments(value: int)

  • int get_radial_segments()

Número de cortes verticales para la esfera.


float radius = 0.5 🔗

  • void set_radius(value: float)

  • float get_radius()

Radio de la esfera.


int rings = 6 🔗

  • void set_rings(value: int)

  • int get_rings()

Número de cortes horizontales para la esfera.


bool smooth_faces = true 🔗

  • void set_smooth_faces(value: bool)

  • bool get_smooth_faces()

Si es true, los normales de la esfera se fijan para dar un efecto suave haciendo que la esfera parezca redondeada. Si es false, la esfera tendrá un aspecto de sombra plana.