reckfellENGINE

VoxelBlockyModelFluid

Model representing a specific state of a fluid.

On this page
class VoxelBlockyModelFluidReckfellSharpInherits VoxelBlockyModel

Model representing a specific state of a fluid.

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

Constructors1

VoxelBlockyModelFluidConstructor
# VoxelBlockyModelFluid
C#
public VoxelBlockyModelFluid();

Properties2

FluidProperty
# Fluid
C#
public VoxelBlockyFluid Fluid { get; set; }

Which fluid this model is part of. Note, fluid resources are supposed to be shared between multiple models, in order to make those models recognized as states of that fluid.

LevelProperty
# Level
C#
public int Level { get; set; }

Fluid level, usually representing how much fluid the model contains. Levels should start from 0, and must be lower than 256. Fluids can have multiple models with the same level. It is also preferable to define at least one model per level (avoid missing levels). It is also recommended to assign models with consecutive levels to consecutive library IDs, however this is not required.

Methods4

GetFluidVoxelBlockyFluid
# GetFluid
C#
public VoxelBlockyFluid GetFluid();
Returns VoxelBlockyFluid
GetLevelint
# GetLevel
C#
public int GetLevel();
Returns int
SetFluidvoid
# SetFluid
C#
public void SetFluid(VoxelBlockyFluid fluid);
Parameters
NameTypeDefault
fluidVoxelBlockyFluid—
SetLevelvoid
# SetLevel
C#
public void SetLevel(int level);
Parameters
NameTypeDefault
levelint—

Fields and constants1

MaxLevelsField
# MaxLevels
C#
public const long MaxLevels = 256;

Maximum amount of supported fluid levels.

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.