diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 21d47aa..4715558 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5216,6 +5216,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
5216 | return null; | 5216 | return null; |
5217 | } | 5217 | } |
5218 | 5218 | ||
5219 | // Get terrain height at the specified <x,y> location. | ||
5220 | // Presumes the underlying implementation is a heightmap which is a 1m grid. | ||
5221 | // Finds heightmap grid points before and after the point and | ||
5222 | // does a linear approximation of the height at this intermediate point. | ||
5219 | public float GetGroundHeight(float x, float y) | 5223 | public float GetGroundHeight(float x, float y) |
5220 | { | 5224 | { |
5221 | if (x < 0) | 5225 | if (x < 0) |