Terrain

Undocumented in source.

Constructors

this
this(uint meshResolution, uint collisionMeshResolution, Heightmap heightmap, Owner owner)
Undocumented in source.
this
this(uint meshResolution, Heightmap heightmap, Owner owner)
Undocumented in source.

Members

Functions

generateMesh
Mesh generateMesh(uint w, uint h, float scale, Owner o)
Undocumented in source. Be warned that the author may not have intended to support it.
getHeight
float getHeight(Entity e, Vector3f pos)
Undocumented in source. Be warned that the author may not have intended to support it.
refreshChanges
void refreshChanges()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(GraphicsState* state)
Undocumented in source. Be warned that the author may not have intended to support it.
traverseBySphere
TerrainSphereTraverseAggregate traverseBySphere(Sphere* sphere)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

collisionMesh
Mesh collisionMesh;
Undocumented in source.
height
uint height;
Undocumented in source.
heightmap
Heightmap heightmap;
Undocumented in source.
mesh
Mesh mesh;
Undocumented in source.
width
uint width;
Undocumented in source.

Inherited Members

From Drawable

render
void render(GraphicsState* state)
Undocumented in source.

Meta