Terrain Engine 2D  1.10
A 2D Block Engine
TerrainEngine2D.FluidDynamics Class Reference

Fluid physics system More...

Inheritance diagram for TerrainEngine2D.FluidDynamics:
TerrainEngine2D.MonoBehaviourSingleton< FluidDynamics >

Public Member Functions

void UpdateFluid ()
 Sets the fluid for updating More...
 
FluidBlock GetFluidBlock (int x, int y)
 Get the fluid block at a specific coordinate More...
 

Protected Member Functions

override void Awake ()
 

Properties

bool TopDown [get]
 Whether the game has a top-down camera style for controlling fluid flow More...
 
float MaxWeight [get]
 Maximum amount of liquid a fluid block can hold More...
 
float MinWeight [get]
 Minimum amount of liquid a fluid block can hold More...
 
float StableAmount [get]
 
float PressureWeight [get]
 Fluid weight pressure factor (each fluid block can hold pressureWeight more liquid than the block above it) More...
 
float FluidDropAmount [get]
 Amount of fluid added on drop More...
 
Color32 MainColor [get]
 Main color of the fluid More...
 
Color32 SecondaryColor [get]
 Secondary color of the fluid (used for lower pressure blocks) More...
 
FluidBlock [,] FluidBlocks [get, set]
 The array of fluid blocks for the whole world More...
 
- Properties inherited from TerrainEngine2D.MonoBehaviourSingleton< FluidDynamics >
static T Instance [get]
 

Detailed Description

Fluid physics system

Member Function Documentation

◆ Awake()

override void TerrainEngine2D.FluidDynamics.Awake ( )
protectedvirtual

◆ GetFluidBlock()

FluidBlock TerrainEngine2D.FluidDynamics.GetFluidBlock ( int  x,
int  y 
)

Get the fluid block at a specific coordinate

Parameters
xX coordinate
yY coordinate
Returns
Returns the fluid block

◆ UpdateFluid()

void TerrainEngine2D.FluidDynamics.UpdateFluid ( )

Sets the fluid for updating

Property Documentation

◆ FluidBlocks

FluidBlock [,] TerrainEngine2D.FluidDynamics.FluidBlocks
getset

The array of fluid blocks for the whole world

◆ FluidDropAmount

float TerrainEngine2D.FluidDynamics.FluidDropAmount
get

Amount of fluid added on drop

◆ MainColor

Color32 TerrainEngine2D.FluidDynamics.MainColor
get

Main color of the fluid

◆ MaxWeight

float TerrainEngine2D.FluidDynamics.MaxWeight
get

Maximum amount of liquid a fluid block can hold

◆ MinWeight

float TerrainEngine2D.FluidDynamics.MinWeight
get

Minimum amount of liquid a fluid block can hold

◆ PressureWeight

float TerrainEngine2D.FluidDynamics.PressureWeight
get

Fluid weight pressure factor (each fluid block can hold pressureWeight more liquid than the block above it)

◆ SecondaryColor

Color32 TerrainEngine2D.FluidDynamics.SecondaryColor
get

Secondary color of the fluid (used for lower pressure blocks)

◆ StableAmount

float TerrainEngine2D.FluidDynamics.StableAmount
get

◆ TopDown

bool TerrainEngine2D.FluidDynamics.TopDown
get

Whether the game has a top-down camera style for controlling fluid flow


The documentation for this class was generated from the following file: