diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSParam.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs index 980d405..2ac68e3 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |||
@@ -37,7 +37,7 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
37 | { | 37 | { |
38 | public static class BSParam | 38 | public static class BSParam |
39 | { | 39 | { |
40 | private static string LogHeader = "[BULLETSIM PARAMETERS]"; | 40 | private static string LogHeader = "[BULLETSIM PARAMETERS]"; |
41 | 41 | ||
42 | // Tuning notes: | 42 | // Tuning notes: |
43 | // From: http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=6575 | 43 | // From: http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=6575 |
@@ -51,7 +51,7 @@ public static class BSParam | |||
51 | // This is separate/independent from the collision margin. The collision margin increases the object a bit | 51 | // This is separate/independent from the collision margin. The collision margin increases the object a bit |
52 | // to improve collision detection performance and accuracy. | 52 | // to improve collision detection performance and accuracy. |
53 | // =================== | 53 | // =================== |
54 | // From: | 54 | // From: |
55 | 55 | ||
56 | // Level of Detail values kept as float because that's what the Meshmerizer wants | 56 | // Level of Detail values kept as float because that's what the Meshmerizer wants |
57 | public static float MeshLOD { get; private set; } | 57 | public static float MeshLOD { get; private set; } |
@@ -87,6 +87,7 @@ public static class BSParam | |||
87 | public static bool ShouldUseHullsForPhysicalObjects { get; private set; } // 'true' if should create hulls for physical objects | 87 | public static bool ShouldUseHullsForPhysicalObjects { get; private set; } // 'true' if should create hulls for physical objects |
88 | public static bool ShouldRemoveZeroWidthTriangles { get; private set; } | 88 | public static bool ShouldRemoveZeroWidthTriangles { get; private set; } |
89 | public static bool ShouldUseBulletHACD { get; set; } | 89 | public static bool ShouldUseBulletHACD { get; set; } |
90 | public static bool ShouldUseSingleConvexHullForPrims { get; set; } | ||
90 | 91 | ||
91 | public static float TerrainImplementation { get; private set; } | 92 | public static float TerrainImplementation { get; private set; } |
92 | public static int TerrainMeshMagnification { get; private set; } | 93 | public static int TerrainMeshMagnification { get; private set; } |
@@ -342,6 +343,10 @@ public static class BSParam | |||
342 | false, | 343 | false, |
343 | (s) => { return ShouldUseBulletHACD; }, | 344 | (s) => { return ShouldUseBulletHACD; }, |
344 | (s,v) => { ShouldUseBulletHACD = v; } ), | 345 | (s,v) => { ShouldUseBulletHACD = v; } ), |
346 | new ParameterDefn<bool>("ShouldUseSingleConvexHullForPrims", "If true, use a single convex hull shape for physical prims", | ||
347 | true, | ||
348 | (s) => { return ShouldUseSingleConvexHullForPrims; }, | ||
349 | (s,v) => { ShouldUseSingleConvexHullForPrims = v; } ), | ||
345 | 350 | ||
346 | new ParameterDefn<int>("CrossingFailuresBeforeOutOfBounds", "How forgiving we are about getting into adjactent regions", | 351 | new ParameterDefn<int>("CrossingFailuresBeforeOutOfBounds", "How forgiving we are about getting into adjactent regions", |
347 | 5, | 352 | 5, |
@@ -636,7 +641,7 @@ public static class BSParam | |||
636 | new ParameterDefn<bool>("ShouldDisableContactPoolDynamicAllocation", "Enable to allow large changes in object count", | 641 | new ParameterDefn<bool>("ShouldDisableContactPoolDynamicAllocation", "Enable to allow large changes in object count", |
637 | false, | 642 | false, |
638 | (s) => { return ShouldDisableContactPoolDynamicAllocation; }, | 643 | (s) => { return ShouldDisableContactPoolDynamicAllocation; }, |
639 | (s,v) => { ShouldDisableContactPoolDynamicAllocation = v; | 644 | (s,v) => { ShouldDisableContactPoolDynamicAllocation = v; |
640 | s.UnmanagedParams[0].shouldDisableContactPoolDynamicAllocation = NumericBool(v); } ), | 645 | s.UnmanagedParams[0].shouldDisableContactPoolDynamicAllocation = NumericBool(v); } ), |
641 | new ParameterDefn<bool>("ShouldForceUpdateAllAabbs", "Enable to recomputer AABBs every simulator step", | 646 | new ParameterDefn<bool>("ShouldForceUpdateAllAabbs", "Enable to recomputer AABBs every simulator step", |
642 | false, | 647 | false, |