diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSParam.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs index 6cb7434..3e0b4bc 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |||
@@ -87,6 +87,7 @@ public static class BSParam | |||
87 | public static float NumberOfSolverIterations; | 87 | public static float NumberOfSolverIterations; |
88 | public static bool UseSingleSidedMeshes { get { return UseSingleSidedMeshesF != ConfigurationParameters.numericFalse; } } | 88 | public static bool UseSingleSidedMeshes { get { return UseSingleSidedMeshesF != ConfigurationParameters.numericFalse; } } |
89 | public static float UseSingleSidedMeshesF; | 89 | public static float UseSingleSidedMeshesF; |
90 | public static float GlobalContactBreakingThreshold; | ||
90 | 91 | ||
91 | // Avatar parameters | 92 | // Avatar parameters |
92 | public static float AvatarFriction { get; private set; } | 93 | public static float AvatarFriction { get; private set; } |
@@ -570,6 +571,11 @@ public static class BSParam | |||
570 | (s,cf,p,v) => { UseSingleSidedMeshesF = BSParam.NumericBool(cf.GetBoolean(p, BSParam.BoolNumeric(v))); }, | 571 | (s,cf,p,v) => { UseSingleSidedMeshesF = BSParam.NumericBool(cf.GetBoolean(p, BSParam.BoolNumeric(v))); }, |
571 | (s) => { return UseSingleSidedMeshesF; }, | 572 | (s) => { return UseSingleSidedMeshesF; }, |
572 | (s,p,l,v) => { UseSingleSidedMeshesF = v; s.UnmanagedParams[0].useSingleSidedMeshes = v; } ), | 573 | (s,p,l,v) => { UseSingleSidedMeshesF = v; s.UnmanagedParams[0].useSingleSidedMeshes = v; } ), |
574 | new ParameterDefn("GlobalContactBreakingThreshold", "Amount of shape radius before breaking a collision contact (0 says Bullet default (0.2))", | ||
575 | 0f, | ||
576 | (s,cf,p,v) => { GlobalContactBreakingThreshold = cf.GetFloat(p, v); }, | ||
577 | (s) => { return GlobalContactBreakingThreshold; }, | ||
578 | (s,p,l,v) => { GlobalContactBreakingThreshold = v; s.UnmanagedParams[0].globalContactBreakingThreshold = v; } ), | ||
573 | 579 | ||
574 | new ParameterDefn("LinksetImplementation", "Type of linkset implementation (0=Constraint, 1=Compound, 2=Manual)", | 580 | new ParameterDefn("LinksetImplementation", "Type of linkset implementation (0=Constraint, 1=Compound, 2=Manual)", |
575 | (float)BSLinkset.LinksetImplementation.Compound, | 581 | (float)BSLinkset.LinksetImplementation.Compound, |