Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

CSGBox3D

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

Una forma di scatola CSG.

Descrizione

Questo nodo consente di creare un box da utilizzare con il sistema CSG.

Nota: I nodi CSG sono progettati per la prototipazione di livelli. La creazione di nodi CSG ha un costo notevole sulla CPU rispetto alla creazione di un MeshInstance3D con un PrimitiveMesh. Anche spostare un nodo CSG all'interno di un altro nodo CSG ha un costo notevole sulla CPU, quindi dovrebbe essere evitato durante il gioco.

Tutorial

Proprietà

Material

material

Vector3

size

Vector3(1, 1, 1)


Descrizioni delle proprietà

Material material 🔗

Il materiale utilizzato per renderizzare la scatola.


Vector3 size = Vector3(1, 1, 1) 🔗

La larghezza, l'altezza, e la profondità della scatola.