Added new functions for terrain

Signed-off-by: Markus Tillman <reetopps6@hotmail.com>