CSGPrimitive

Inherits: CSGShape < GeometryInstance < VisualInstance < CullInstance < Spatial < Node < Object

Inherited By: CSGBox, CSGCylinder, CSGMesh, CSGPolygon, CSGSphere, CSGTorus

Base class for CSG primitives.

Description

Parent class for various CSG primitives. It contains code and functionality that is common between them. It cannot be used directly. Instead use one of the various classes that inherit from it.

Note: CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a MeshInstance with a PrimitiveMesh. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.

Tutorials

Properties

bool

invert_faces

false


Property Descriptions

bool invert_faces = false

  • void set_invert_faces ( bool value )

  • bool is_inverting_faces ( )

Invert the faces of the mesh.