reckfellENGINE

CsgBox3D

A CSG Box shape.

On this page
class CsgBox3DReckfellSharpInherits CsgPrimitive3D

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
# CsgBox3D
C#
public CsgBox3D();

Properties2

MaterialProperty
# Material
C#
public Material Material { get; set; }

The material used to render the box.

SizeProperty
# Size
C#
public Vector3 Size { get; set; }

The box's width, height and depth.

Methods4

GetMaterialMaterial
# GetMaterial
C#
public Material GetMaterial();
Returns Material
GetSizeVector3
# GetSize
C#
public Vector3 GetSize();
Returns Vector3
SetMaterialvoid
# SetMaterial
C#
public void SetMaterial(Material material);
Parameters
NameTypeDefault
materialMaterial—
SetSizevoid
# SetSize
C#
public void SetSize(Vector3 size);
Parameters
NameTypeDefault
sizeVector3—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.