C# 클래스 Project2.GameObjects.DiamondSquareTerrain

상속: Terrain
파일 보기 프로젝트 열기: nuclearpidgeon/graphicsproj2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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