CSGTorus3D

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

Una forma de Toroide CSG.

Descripción

This node allows you to create a torus 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

float

inner_radius

0.5

Material

material

float

outer_radius

1.0

int

ring_sides

6

int

sides

8

bool

smooth_faces

true


Descripciones de Propiedades

float inner_radius = 0.5 🔗

  • void set_inner_radius(value: float)

  • float get_inner_radius()

El radio interior del toroide.


Material material 🔗

El material utilizado para la fabricación del toroide.


float outer_radius = 1.0 🔗

  • void set_outer_radius(value: float)

  • float get_outer_radius()

El radio exterior del toroide.


int ring_sides = 6 🔗

  • void set_ring_sides(value: int)

  • int get_ring_sides()

El número de bordes con que se construye cada anillo del toroide.


int sides = 8 🔗

  • void set_sides(value: int)

  • int get_sides()

El número de piezas de las que está construido el toroide.


bool smooth_faces = true 🔗

  • void set_smooth_faces(value: bool)

  • bool get_smooth_faces()

Si es true, las normales del toro se fijan para dar un efecto suave haciendo que el toro parezca redondeado. Si es false, el toro tendrá un aspecto de sombra plana.