W3cubDocs

/Godot 3.1

CSGBox

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

Category: Core

Brief Description

A CSG Box shape.

Properties

float depth
float height
Material material
float width

Description

This node allows you to create a box for use with the CSG system.

Property Descriptions

float depth

Setter set_depth(value)
Getter get_depth()

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

float height

Setter set_height(value)
Getter get_height()

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

Material material

Setter set_material(value)
Getter get_material()

The material used to render the box.

float width

Setter set_width(value)
Getter get_width()

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

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_csgbox.html