diff options
author | UbitUmarov | 2012-02-19 02:07:43 +0000 |
---|---|---|
committer | UbitUmarov | 2012-02-19 02:07:43 +0000 |
commit | 736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d (patch) | |
tree | 526cec900fdaec0826afcfe532708451258f6e16 | |
parent | missing paramenters init plus some cleaning (diff) | |
download | opensim-SC-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.zip opensim-SC-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.gz opensim-SC-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.bz2 opensim-SC-736fb0b41dae9ab4a66e556bbb37aeb9d6360f1d.tar.xz |
minor fix to chODE terrain heighmap scale
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs | 8 |
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; |