C# Класс TerrainGeneration.WindErosionParticle

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CarryingAmount float
CarryingCapacity float
Height float
Position Vector2
Velocity float

Открытые методы

Метод Описание
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

Описание методов

DepositAmount() публичный Метод

Returns the amount of loose material to deposit on the terrain.
public DepositAmount ( float sheddingRate ) : float
sheddingRate float
Результат float

Reset() публичный Метод

public Reset ( int x, int y ) : void
x int
y int
Результат void

WindErosionParticle() публичный Метод

public WindErosionParticle ( ) : System
Результат System

WindErosionParticle() публичный Метод

public WindErosionParticle ( int x, int y ) : System
x int
y int
Результат System

Описание свойств

CarryingAmount публичное свойство

Amount of material this particle is carrying.
public float CarryingAmount
Результат float

CarryingCapacity публичное свойство

Amount of material this particle can currently carry. Depends on velocity.
public float CarryingCapacity
Результат float

Height публичное свойство

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
Результат float

Position публичное свойство

Position of the particle on the heightfield
public Vector2 Position
Результат Vector2

Velocity публичное свойство

Velocity of material in particle, not velocity of particle across terrain.
public float Velocity
Результат float