Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Terrain.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2018 http://www.aurasoft.co.uk
8 // |
9 // | Skyline Game Engine Lua API Documentation
10 // |
11 // | This file belongs to Aurasoft UK for the Skyline Game Engine of all versions.
12 // | This file is not for use in any other software that is not owned by Aurasoft UK and cannot be used by any other
13 // | person outside of the Skyline Game Engine development team.
14 // |
15 // | Copyright - Aurasoft UK & Skyline Game Engine 2008 - 2018
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
27 class terrain
28 {
29 public:
30 
47  string getSurfaceAtPoint(int posX, int posZ);
48 
65  string getTextureAtPoint(int posX, int posZ);
66 
83  float getHeightAtPoint(int posX, int posZ);
84 };
Definition: LUA_API_Terrain.h:27
string getSurfaceAtPoint(int posX, int posZ)
Get the user definable surface name set from within the terrain editor panel. This is not the texture...
float getHeightAtPoint(int posX, int posZ)
Get the height of the closest vertice defined by a world space position on the x and z axis...
string getTextureAtPoint(int posX, int posZ)
Get the texture surface that is visible on the terrain at a given location. If you want to get the ge...