CsgBox3D
A CSG Box shape.
A CSG Box shape.
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 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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CsgBox3DConstructor
public CsgBox3D();Properties2
MaterialProperty
public Material Material { get; set; }The material used to render the box.
SizeProperty
public Vector3 Size { get; set; }The box's width, height and depth.
Methods4
GetMaterialMaterial
public Material GetMaterial();Returns
MaterialGetSizeVector3
public Vector3 GetSize();Returns
Vector3SetMaterialvoid
public void SetMaterial(Material material);| Name | Type | Default |
|---|---|---|
material | Material | — |
SetSizevoid
public void SetSize(Vector3 size);| Name | Type | Default |
|---|---|---|
size | Vector3 | — |
Reckfell Engine documentationBack to top ↑