CSGBox

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

A CSG Box shape.

Description

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

float

depth

2.0

float

height

2.0

Material

material

float

width

2.0


Property Descriptions

float depth = 2.0

  • void set_depth ( float value )

  • float get_depth ( )

Depth of the box measured from the center of the box.


float height = 2.0

  • void set_height ( float value )

  • float get_height ( )

Height of the box measured from the center of the box.


Material material

The material used to render the box.


float width = 2.0

  • void set_width ( float value )

  • float get_width ( )

Width of the box measured from the center of the box.