diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs index fc08819..e23e355 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs | |||
@@ -171,7 +171,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
171 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 171 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
172 | 172 | ||
173 | public bool m_OSOdeLib = false; | 173 | public bool m_OSOdeLib = false; |
174 | public bool m_suportCombine = false; // mega suport not tested | ||
175 | public Scene m_frameWorkScene = null; | 174 | public Scene m_frameWorkScene = null; |
176 | 175 | ||
177 | // private int threadid = 0; | 176 | // private int threadid = 0; |
@@ -380,8 +379,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
380 | WorldExtents.Y = m_frameWorkScene.RegionInfo.RegionSizeY; | 379 | WorldExtents.Y = m_frameWorkScene.RegionInfo.RegionSizeY; |
381 | m_regionHeight = (uint)WorldExtents.Y; | 380 | m_regionHeight = (uint)WorldExtents.Y; |
382 | 381 | ||
383 | m_suportCombine = false; | ||
384 | |||
385 | lock (OdeLock) | 382 | lock (OdeLock) |
386 | { | 383 | { |
387 | // Create the world and the first space | 384 | // Create the world and the first space |
@@ -1938,12 +1935,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1938 | int offsetX = 0; | 1935 | int offsetX = 0; |
1939 | int offsetY = 0; | 1936 | int offsetY = 0; |
1940 | 1937 | ||
1941 | if (m_suportCombine) | ||
1942 | { | ||
1943 | offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
1944 | offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
1945 | } | ||
1946 | |||
1947 | // get region map | 1938 | // get region map |
1948 | IntPtr heightFieldGeom = IntPtr.Zero; | 1939 | IntPtr heightFieldGeom = IntPtr.Zero; |
1949 | if (!RegionTerrain.TryGetValue(new Vector3(offsetX, offsetY, 0), out heightFieldGeom)) | 1940 | if (!RegionTerrain.TryGetValue(new Vector3(offsetX, offsetY, 0), out heightFieldGeom)) |
@@ -2076,12 +2067,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
2076 | int offsetX = 0; | 2067 | int offsetX = 0; |
2077 | int offsetY = 0; | 2068 | int offsetY = 0; |
2078 | 2069 | ||
2079 | if (m_suportCombine) | ||
2080 | { | ||
2081 | offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
2082 | offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
2083 | } | ||
2084 | |||
2085 | // get region map | 2070 | // get region map |
2086 | IntPtr heightFieldGeom = IntPtr.Zero; | 2071 | IntPtr heightFieldGeom = IntPtr.Zero; |
2087 | Vector3 norm = new Vector3(0, 0, 1); | 2072 | Vector3 norm = new Vector3(0, 0, 1); |
@@ -2224,12 +2209,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
2224 | } | 2209 | } |
2225 | } | 2210 | } |
2226 | 2211 | ||
2227 | public override void CombineTerrain(float[] heightMap, Vector3 pOffset) | ||
2228 | { | ||
2229 | if(m_suportCombine) | ||
2230 | SetTerrain(heightMap, pOffset); | ||
2231 | } | ||
2232 | |||
2233 | public void SetTerrain(float[] heightMap, Vector3 pOffset) | 2212 | public void SetTerrain(float[] heightMap, Vector3 pOffset) |
2234 | { | 2213 | { |
2235 | if (m_OSOdeLib) | 2214 | if (m_OSOdeLib) |
@@ -2479,11 +2458,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
2479 | return waterlevel; | 2458 | return waterlevel; |
2480 | } | 2459 | } |
2481 | 2460 | ||
2482 | public override bool SupportsCombining() | ||
2483 | { | ||
2484 | return m_suportCombine; | ||
2485 | } | ||
2486 | |||
2487 | public override void SetWaterLevel(float baseheight) | 2461 | public override void SetWaterLevel(float baseheight) |
2488 | { | 2462 | { |
2489 | waterlevel = baseheight; | 2463 | waterlevel = baseheight; |