From 00b5b915c7fb656743628b6409e10a6420db2de7 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sat, 7 Mar 2015 17:47:40 -0800 Subject: BulletSim: add VEHICLE_ more parameter value limit checking. This only bounds passed parameters as there is no good way of refusing the parameter setting. This mostly means that passing NaN's won't crash the simulator. --- OpenSim/Region/Framework/Scenes/Scene.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') 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 return null; } + // Get terrain height at the specified location. + // Presumes the underlying implementation is a heightmap which is a 1m grid. + // Finds heightmap grid points before and after the point and + // does a linear approximation of the height at this intermediate point. public float GetGroundHeight(float x, float y) { if (x < 0) -- cgit v1.1