C# Class TerrainGeneration.WindErosionParticle

Show file Open project: geofftnz/TestBench1

Public Properties

Property Type Description
CarryingAmount float
CarryingCapacity float
Height float
Position Vector2
Velocity float

Public Methods

Method Description
DepositAmount ( float sheddingRate ) : float

Returns the amount of loose material to deposit on the terrain.

Reset ( int x, int y ) : void
WindErosionParticle ( ) : System
WindErosionParticle ( int x, int y ) : System

Method Details

DepositAmount() public method

Returns the amount of loose material to deposit on the terrain.
public DepositAmount ( float sheddingRate ) : float
sheddingRate float
return float

Reset() public method

public Reset ( int x, int y ) : void
x int
y int
return void

WindErosionParticle() public method

public WindErosionParticle ( ) : System
return System

WindErosionParticle() public method

public WindErosionParticle ( int x, int y ) : System
x int
y int
return System

Property Details

CarryingAmount public property

Amount of material this particle is carrying.
public float CarryingAmount
return float

CarryingCapacity public property

Amount of material this particle can currently carry. Depends on velocity.
public float CarryingCapacity
return float

Height public property

Height of particle. This should always be above the surface of the ground. As a particle is forced upwards, it increases in velocity. Particle height decays exponentially and velocity with it.
public float Height
return float

Position public property

Position of the particle on the heightfield
public Vector2 Position
return Vector2

Velocity public property

Velocity of material in particle, not velocity of particle across terrain.
public float Velocity
return float