Свойство | Тип | Описание | |
---|---|---|---|
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[ |
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 |
protected GeneratePhysicsDescription ( ) : RigidBody | ||
Результат | RigidBody |
protected GenerateTerrainData ( ) : ].float[ | ||
Результат | ].float[ |