aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2012-02-19 02:07:43 +0000
committerUbitUmarov2012-02-19 02:07:43 +0000
commit736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d (patch)
tree526cec900fdaec0826afcfe532708451258f6e16 /OpenSim/Region
parent missing paramenters init plus some cleaning (diff)
downloadopensim-SC_OLD-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.zip
opensim-SC_OLD-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.gz
opensim-SC_OLD-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.bz2
opensim-SC_OLD-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.xz
minor fix to chODE terrain heighmap scale
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
index 03059f7..b5b30ee 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -3440,15 +3440,15 @@ namespace OpenSim.Region.Physics.OdePlugin
3440 3440
3441 int regionsize = (int) Constants.RegionSize; // visible region size eg. 256(M) 3441 int regionsize = (int) Constants.RegionSize; // visible region size eg. 256(M)
3442 3442
3443 int heightmapWidth = regionsize + 2; // ODE map size 257 x 257 (Meters) (1 extra 3443 int heightmapWidth = regionsize + 2; // ODE map size 258 x 258 (Meters) (1 extra each side)
3444 int heightmapHeight = regionsize + 2; 3444 int heightmapHeight = regionsize + 2;
3445 3445
3446 int heightmapWidthSamples = (int)regionsize + 2; // Sample file size, 258 x 258 samples 3446 int heightmapWidthSamples = (int)regionsize + 3; // to have 258m we need 259 samples
3447 int heightmapHeightSamples = (int)regionsize + 2; 3447 int heightmapHeightSamples = (int)regionsize + 3;
3448 3448
3449 // Array of height samples for ODE 3449 // Array of height samples for ODE
3450 float[] _heightmap; 3450 float[] _heightmap;
3451 _heightmap = new float[(heightmapWidthSamples * heightmapHeightSamples)]; // loaded samples 258 x 258 3451 _heightmap = new float[(heightmapWidthSamples * heightmapHeightSamples)]; // loaded samples 259 x 259
3452 3452
3453 // Other ODE parameters 3453 // Other ODE parameters
3454 const float scale = 1.0f; 3454 const float scale = 1.0f;