C# Class Project2.GameObjects.HeightMapTerrain

Inheritance: Terrain
Show file Open project: nuclearpidgeon/graphicsproj2

Public Methods

Method Description
HeightMapTerrain ( Project2Game game, System.Vector3 position, Texture2D heightMap, float xScale, float zScale ) : System

Protected Methods

Method Description
GeneratePhysicsDescription ( ) : Jitter.Dynamics.RigidBody
GenerateTerrainData ( ) : ].float[

Process a heightmap into a 2D array of integers representing the terrain data. Set the terrain object's height and width parameters.

Method Details

GeneratePhysicsDescription() protected method

protected GeneratePhysicsDescription ( ) : Jitter.Dynamics.RigidBody
return Jitter.Dynamics.RigidBody

GenerateTerrainData() protected method

Process a heightmap into a 2D array of integers representing the terrain data. Set the terrain object's height and width parameters.
protected GenerateTerrainData ( ) : ].float[
return ].float[

HeightMapTerrain() public method

public HeightMapTerrain ( Project2Game game, System.Vector3 position, Texture2D heightMap, float xScale, float zScale ) : System
game Project2Game
position System.Vector3
heightMap Texture2D
xScale float
zScale float
return System