aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
index f2b21a3..6612e97 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -2326,7 +2326,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2326 2326
2327 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle); 2327 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
2328 d.GeomSetRotation(GroundGeom, ref R); 2328 d.GeomSetRotation(GroundGeom, ref R);
2329 d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0); 2329 d.GeomSetPosition(GroundGeom, pOffset.X + WorldExtents.X * 0.5f, pOffset.Y + WorldExtents.Y * 0.5f, 0);
2330 RegionTerrain.Add(pOffset, GroundGeom); 2330 RegionTerrain.Add(pOffset, GroundGeom);
2331 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); 2331 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap);
2332 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); 2332 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler);
@@ -2436,7 +2436,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2436 2436
2437// geom_name_map[GroundGeom] = "Terrain"; 2437// geom_name_map[GroundGeom] = "Terrain";
2438 2438
2439 d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0); 2439 d.GeomSetPosition(GroundGeom, pOffset.X + WorldExtents.X * 0.5f, pOffset.Y + WorldExtents.Y * 0.5f, 0);
2440 RegionTerrain.Add(pOffset, GroundGeom); 2440 RegionTerrain.Add(pOffset, GroundGeom);
2441 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap); 2441 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap);
2442 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler); 2442 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler);