diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/BulletS/BSParam.cs')
-rwxr-xr-x | OpenSim/Region/PhysicsModules/BulletS/BSParam.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs index 352c03e..fcda92c 100755 --- a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs | |||
@@ -230,6 +230,8 @@ public static class BSParam | |||
230 | public static float LinkConstraintCFM { get; private set; } | 230 | public static float LinkConstraintCFM { get; private set; } |
231 | public static float LinkConstraintSolverIterations { get; private set; } | 231 | public static float LinkConstraintSolverIterations { get; private set; } |
232 | 232 | ||
233 | public static bool UseBulletRaycast { get; private set; } | ||
234 | |||
233 | public static float PID_D { get; private set; } // derivative | 235 | public static float PID_D { get; private set; } // derivative |
234 | public static float PID_P { get; private set; } // proportional | 236 | public static float PID_P { get; private set; } // proportional |
235 | 237 | ||
@@ -823,6 +825,9 @@ public static class BSParam | |||
823 | new ParameterDefn<float>("LinkConstraintSolverIterations", "Number of solver iterations when computing constraint. (0 = Bullet default)", | 825 | new ParameterDefn<float>("LinkConstraintSolverIterations", "Number of solver iterations when computing constraint. (0 = Bullet default)", |
824 | 40 ), | 826 | 40 ), |
825 | 827 | ||
828 | new ParameterDefn<bool>("UseBulletRaycast", "If 'true', use the raycast function of the Bullet physics engine", | ||
829 | true ), | ||
830 | |||
826 | new ParameterDefn<float>("DebugNumber", "A console setable number sometimes used for debugging", | 831 | new ParameterDefn<float>("DebugNumber", "A console setable number sometimes used for debugging", |
827 | 1.0f ), | 832 | 1.0f ), |
828 | 833 | ||
@@ -833,7 +838,7 @@ public static class BSParam | |||
833 | new ParameterDefn<float>("ResetBroadphasePool", "Setting this is any value resets the broadphase collision pool", | 838 | new ParameterDefn<float>("ResetBroadphasePool", "Setting this is any value resets the broadphase collision pool", |
834 | 0f, | 839 | 0f, |
835 | (s) => { return 0f; }, | 840 | (s) => { return 0f; }, |
836 | (s,v) => { BSParam.ResetBroadphasePoolTainted(s, v, false /* inTaintTime */); } ), | 841 | (s,v) => { BSParam.ResetBroadphasePoolTainted(s, v); } ), |
837 | new ParameterDefn<float>("ResetConstraintSolver", "Setting this is any value resets the constraint solver", | 842 | new ParameterDefn<float>("ResetConstraintSolver", "Setting this is any value resets the constraint solver", |
838 | 0f, | 843 | 0f, |
839 | (s) => { return 0f; }, | 844 | (s) => { return 0f; }, |
@@ -919,10 +924,10 @@ public static class BSParam | |||
919 | // ===================================================================== | 924 | // ===================================================================== |
920 | // There are parameters that, when set, cause things to happen in the physics engine. | 925 | // There are parameters that, when set, cause things to happen in the physics engine. |
921 | // This causes the broadphase collision cache to be cleared. | 926 | // This causes the broadphase collision cache to be cleared. |
922 | private static void ResetBroadphasePoolTainted(BSScene pPhysScene, float v, bool inTaintTime) | 927 | private static void ResetBroadphasePoolTainted(BSScene pPhysScene, float v) |
923 | { | 928 | { |
924 | BSScene physScene = pPhysScene; | 929 | BSScene physScene = pPhysScene; |
925 | physScene.TaintedObject(inTaintTime, "BSParam.ResetBroadphasePoolTainted", delegate() | 930 | physScene.TaintedObject(BSScene.DetailLogZero, "BSParam.ResetBroadphasePoolTainted", delegate() |
926 | { | 931 | { |
927 | physScene.PE.ResetBroadphasePool(physScene.World); | 932 | physScene.PE.ResetBroadphasePool(physScene.World); |
928 | }); | 933 | }); |