VoxelGeneratorFlat
Voxel generator producing an infinite flat ground.
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
public VoxelGeneratorFlat();Properties3
ChannelProperty
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
public float Height { get; set; }Altitude of the ground.
VoxelTypeProperty
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
public VoxelBuffer.ChannelId GetChannel();Returns
VoxelBuffer.ChannelIdGetHeightfloat
public float GetHeight();Returns
floatGetVoxelTypeint
public int GetVoxelType();Returns
intSetChannelvoid
public void SetChannel(VoxelBuffer.ChannelId channel);| Name | Type | Default |
|---|---|---|
channel | VoxelBuffer.ChannelId | — |
SetHeightvoid
public void SetHeight(float h);| Name | Type | Default |
|---|---|---|
h | float | — |
SetVoxelTypevoid
public void SetVoxelType(int id);| Name | Type | Default |
|---|---|---|
id | int | — |
Reckfell Engine documentationBack to top ↑