reckfellENGINE

VoxelGeneratorFlat

Voxel generator producing an infinite flat ground.

On this page
class VoxelGeneratorFlatReckfellSharpInherits VoxelGenerator

Voxel generator producing an infinite flat ground.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

VoxelGeneratorFlatConstructor
# VoxelGeneratorFlat
C#
public VoxelGeneratorFlat();

Properties3

ChannelProperty
# Channel
C#
public VoxelBuffer.ChannelId Channel { get; set; }

Channel that will be used to generate the ground. Use VoxelBuffer.ChannelId.ChannelSdf for smooth terrain, other channels for blocky.

HeightProperty
# Height
C#
public float Height { get; set; }

Altitude of the ground.

VoxelTypeProperty
# VoxelType
C#
public int VoxelType { get; set; }

If VoxelGeneratorFlat.Channel is set to any channel other than VoxelBuffer.ChannelId.ChannelSdf, this value will be used to fill ground voxels, while air voxels will be set to 0.

Methods6

GetChannelVoxelBuffer.ChannelId
# GetChannel
C#
public VoxelBuffer.ChannelId GetChannel();
Returns VoxelBuffer.ChannelId
GetHeightfloat
# GetHeight
C#
public float GetHeight();
Returns float
GetVoxelTypeint
# GetVoxelType
C#
public int GetVoxelType();
Returns int
SetChannelvoid
# SetChannel
C#
public void SetChannel(VoxelBuffer.ChannelId channel);
Parameters
NameTypeDefault
channelVoxelBuffer.ChannelId—
SetHeightvoid
# SetHeight
C#
public void SetHeight(float h);
Parameters
NameTypeDefault
hfloat—
SetVoxelTypevoid
# SetVoxelType
C#
public void SetVoxelType(int id);
Parameters
NameTypeDefault
idint—
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.