aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
diff options
context:
space:
mode:
authorRobert Adams2013-03-18 23:58:21 -0700
committerRobert Adams2013-03-19 00:00:03 -0700
commit8360223fedc5a5521878806f40bdb0c3244241cc (patch)
treef06d6440a780a93f6269b7761c52b0a3b951588e /OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
parentBulletSim: add terrain contact processing threshold parameter. Initialize con... (diff)
downloadopensim-SC-8360223fedc5a5521878806f40bdb0c3244241cc.zip
opensim-SC-8360223fedc5a5521878806f40bdb0c3244241cc.tar.gz
opensim-SC-8360223fedc5a5521878806f40bdb0c3244241cc.tar.bz2
opensim-SC-8360223fedc5a5521878806f40bdb0c3244241cc.tar.xz
BulletSim: code to generate a higher resolution terrain mesh. Parameter
TerrainMeshMagnification controls number of vertices generated per heightmap point. Default is 3.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSParam.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSParam.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
index cb0d929..4d89a88 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
@@ -88,6 +88,7 @@ public static class BSParam
88 public static bool ShouldRemoveZeroWidthTriangles { get; private set; } 88 public static bool ShouldRemoveZeroWidthTriangles { get; private set; }
89 89
90 public static float TerrainImplementation { get; private set; } 90 public static float TerrainImplementation { get; private set; }
91 public static int TerrainMeshMagnification { get; private set; }
91 public static float TerrainFriction { get; private set; } 92 public static float TerrainFriction { get; private set; }
92 public static float TerrainHitFraction { get; private set; } 93 public static float TerrainHitFraction { get; private set; }
93 public static float TerrainRestitution { get; private set; } 94 public static float TerrainRestitution { get; private set; }
@@ -461,6 +462,10 @@ public static class BSParam
461 (float)BSTerrainPhys.TerrainImplementation.Mesh, 462 (float)BSTerrainPhys.TerrainImplementation.Mesh,
462 (s) => { return TerrainImplementation; }, 463 (s) => { return TerrainImplementation; },
463 (s,v) => { TerrainImplementation = v; } ), 464 (s,v) => { TerrainImplementation = v; } ),
465 new ParameterDefn<int>("TerrainMeshMagnification", "Number of times the 256x256 heightmap is multiplied to create the terrain mesh" ,
466 3,
467 (s) => { return TerrainMeshMagnification; },
468 (s,v) => { TerrainMeshMagnification = v; } ),
464 new ParameterDefn<float>("TerrainFriction", "Factor to reduce movement against terrain surface" , 469 new ParameterDefn<float>("TerrainFriction", "Factor to reduce movement against terrain surface" ,
465 0.3f, 470 0.3f,
466 (s) => { return TerrainFriction; }, 471 (s) => { return TerrainFriction; },