VoxelBlockyFluid
Properties of a blocky fluid.
Properties of a blocky fluid.
Common properties of a specific fluid. It may be shared between multiple blocky models, each representing a level/state of the fluid.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelBlockyFluidConstructor
public VoxelBlockyFluid();Properties2
DipWhenFlowingDownProperty
public bool DipWhenFlowingDown { get; set; }When enabled, if all following conditions are met for a given fluid voxel:
- It doesn't have maximum level
- It isn't covered by another voxel of the same fluid type
- It can flow downwards (below is air or fluid of the same type) Then the shape of the voxel will change to be "pushed" downwards, creating steeper slopes. Note, this also means the voxel will look as if it has minimum level in some situations. However, in practice these cases don't occur often. You may decide whether to use this option depending on how your fluid simulates.
MaterialProperty
public Material Material { get; set; }Material used by all states of the fluid. Note that UVs of a fluid are different than a regular model, so you may need a ShaderMaterial to handle flowing animation. See [url]https://voxel-tools.readthedocs.io/en/latest/blocky_terrain/#fluids[/url]
Methods4
GetDipWhenFlowingDownbool
public bool GetDipWhenFlowingDown();Returns
boolGetMaterialMaterial
public Material GetMaterial();Returns
MaterialSetDipWhenFlowingDownvoid
public void SetDipWhenFlowingDown(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetMaterialvoid
public void SetMaterial(Material material);| Name | Type | Default |
|---|---|---|
material | Material | — |
Reckfell Engine documentationBack to top ↑