diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/Ode/OdeScene.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index 7021a05..ed2aad4 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |||
@@ -258,8 +258,6 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
258 | 258 | ||
259 | private Random fluidRandomizer = new Random(Environment.TickCount); | 259 | private Random fluidRandomizer = new Random(Environment.TickCount); |
260 | 260 | ||
261 | public bool m_suportCombine = true; | ||
262 | |||
263 | private uint m_regionWidth = Constants.RegionSize; | 261 | private uint m_regionWidth = Constants.RegionSize; |
264 | private uint m_regionHeight = Constants.RegionSize; | 262 | private uint m_regionHeight = Constants.RegionSize; |
265 | 263 | ||
@@ -542,8 +540,6 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
542 | WorldExtents.Y = regionExtent.Y; | 540 | WorldExtents.Y = regionExtent.Y; |
543 | m_regionHeight = (uint)regionExtent.Y; | 541 | m_regionHeight = (uint)regionExtent.Y; |
544 | 542 | ||
545 | m_suportCombine = false; | ||
546 | |||
547 | nearCallback = near; | 543 | nearCallback = near; |
548 | m_rayCastManager = new ODERayCastRequestManager(this); | 544 | m_rayCastManager = new ODERayCastRequestManager(this); |
549 | 545 | ||
@@ -1627,15 +1623,6 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
1627 | 1623 | ||
1628 | #endregion | 1624 | #endregion |
1629 | 1625 | ||
1630 | public override void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents) | ||
1631 | { | ||
1632 | if (!m_suportCombine) | ||
1633 | return; | ||
1634 | m_worldOffset = offset; | ||
1635 | WorldExtents = new Vector2(extents.X, extents.Y); | ||
1636 | m_parentScene = pScene; | ||
1637 | } | ||
1638 | |||
1639 | // Recovered for use by fly height. Kitto Flora | 1626 | // Recovered for use by fly height. Kitto Flora |
1640 | internal float GetTerrainHeightAtXY(float x, float y) | 1627 | internal float GetTerrainHeightAtXY(float x, float y) |
1641 | { | 1628 | { |
@@ -1643,12 +1630,6 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
1643 | int offsetX = 0; | 1630 | int offsetX = 0; |
1644 | int offsetY = 0; | 1631 | int offsetY = 0; |
1645 | 1632 | ||
1646 | if (m_suportCombine) | ||
1647 | { | ||
1648 | offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
1649 | offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize; | ||
1650 | } | ||
1651 | |||
1652 | if(RegionTerrain.TryGetValue(new Vector3(offsetX,offsetY,0), out heightFieldGeom)) | 1633 | if(RegionTerrain.TryGetValue(new Vector3(offsetX,offsetY,0), out heightFieldGeom)) |
1653 | { | 1634 | { |
1654 | if (heightFieldGeom != IntPtr.Zero) | 1635 | if (heightFieldGeom != IntPtr.Zero) |
@@ -3387,11 +3368,6 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
3387 | return waterlevel; | 3368 | return waterlevel; |
3388 | } | 3369 | } |
3389 | 3370 | ||
3390 | public override bool SupportsCombining() | ||
3391 | { | ||
3392 | return m_suportCombine; | ||
3393 | } | ||
3394 | |||
3395 | public override void SetWaterLevel(float baseheight) | 3371 | public override void SetWaterLevel(float baseheight) |
3396 | { | 3372 | { |
3397 | waterlevel = baseheight; | 3373 | waterlevel = baseheight; |