C# Класс Project2.GameObjects.DiamondSquareTerrain

Наследование: Terrain
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Amplitude float

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

Метод Описание
DiamondSquareTerrain ( Project2Game game, System.Vector3 position, int density, float xScale, float zScale, float amplitude ) : System

Construct a static physics mesh terrain procedurally using diamond-square. Density is n, a square with width 2^n-1 will be generated.

Защищенные методы

Метод Описание
GeneratePhysicsDescription ( ) : RigidBody
GenerateTerrainData ( ) : ].float[

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

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

Construct a static physics mesh terrain procedurally using diamond-square. Density is n, a square with width 2^n-1 will be generated.
public DiamondSquareTerrain ( Project2Game game, System.Vector3 position, int density, float xScale, float zScale, float amplitude ) : System
game Project2Game
position System.Vector3 Bottom left corner of heightfield
density int Controls number of points in height field as square of side length 2^n-1 (e.g. 6)
xScale float
zScale float
amplitude float Variance of height field
Результат System

GeneratePhysicsDescription() защищенный Метод

protected GeneratePhysicsDescription ( ) : RigidBody
Результат RigidBody

GenerateTerrainData() защищенный Метод

protected GenerateTerrainData ( ) : ].float[
Результат ].float[

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

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

public float Amplitude
Результат float