aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorUbitUmarov2012-02-23 00:22:44 +0000
committerUbitUmarov2012-02-23 00:22:44 +0000
commitaa77d1d486f11da7dc841190f1ca85e085d0d648 (patch)
tree8815677818b3b4fac4b7a443a61979ca076ed187 /OpenSim/Region/Physics
parentAdjust sit target and the llSetLinkPrimitiveParams sit position hack (diff)
downloadopensim-SC_OLD-aa77d1d486f11da7dc841190f1ca85e085d0d648.zip
opensim-SC_OLD-aa77d1d486f11da7dc841190f1ca85e085d0d648.tar.gz
opensim-SC_OLD-aa77d1d486f11da7dc841190f1ca85e085d0d648.tar.bz2
opensim-SC_OLD-aa77d1d486f11da7dc841190f1ca85e085d0d648.tar.xz
fix my bug on ChODE terrain heightmap build
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
index 03059f7..e73454f 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -3443,8 +3443,8 @@ namespace OpenSim.Region.Physics.OdePlugin
3443 int heightmapWidth = regionsize + 2; // ODE map size 257 x 257 (Meters) (1 extra 3443 int heightmapWidth = regionsize + 2; // ODE map size 257 x 257 (Meters) (1 extra
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; // Sample file size, 258 x 258 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;
@@ -3481,7 +3481,7 @@ namespace OpenSim.Region.Physics.OdePlugin
3481 // Output x = 0 1 2 3 ..... 255 256 257 258 total out 3481 // Output x = 0 1 2 3 ..... 255 256 257 258 total out
3482 float val= heightMap[(yy * regionsize) + xx]; // input from heightMap, <0-255 * 256> <0-255> 3482 float val= heightMap[(yy * regionsize) + xx]; // input from heightMap, <0-255 * 256> <0-255>
3483 if (val < minele) val = minele; 3483 if (val < minele) val = minele;
3484 _heightmap[x * (regionsize + 2) + y] = val; // samples output to _heightmap, <0-257 * 258> <0-257> 3484 _heightmap[x * (heightmapWidthSamples) + y] = val; // samples output to _heightmap, <0-257 * 258> <0-257>
3485 hfmin = (val < hfmin) ? val : hfmin; 3485 hfmin = (val < hfmin) ? val : hfmin;
3486 hfmax = (val > hfmax) ? val : hfmax; 3486 hfmax = (val > hfmax) ? val : hfmax;
3487 } 3487 }