aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
diff options
context:
space:
mode:
authorRobert Adams2012-12-27 06:58:07 -0800
committerRobert Adams2012-12-27 22:12:25 -0800
commitf3baed5827853c5041f042ff36cf394b1e45538f (patch)
tree3560e4990a9eb4be19e30be88e4bcbff6718fce7 /OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
parentBulletSim: complete applyImpulse function in BSCharacter (like I said (diff)
downloadopensim-SC_OLD-f3baed5827853c5041f042ff36cf394b1e45538f.zip
opensim-SC_OLD-f3baed5827853c5041f042ff36cf394b1e45538f.tar.gz
opensim-SC_OLD-f3baed5827853c5041f042ff36cf394b1e45538f.tar.bz2
opensim-SC_OLD-f3baed5827853c5041f042ff36cf394b1e45538f.tar.xz
BulletSim: add physical parameter min/max constants in BSParam. I just don't like raw numbers scattered around the code.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSParam.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSParam.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
index 7454718..8366cef 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs
@@ -89,6 +89,18 @@ public static class BSParam
89 public static float PID_D { get; private set; } // derivative 89 public static float PID_D { get; private set; } // derivative
90 public static float PID_P { get; private set; } // proportional 90 public static float PID_P { get; private set; } // proportional
91 91
92 // Various constants that come from that other virtual world that shall not be named
93 public const float MinGravityZ = -1f;
94 public const float MaxGravityZ = 28f;
95 public const float MinFriction = 0f;
96 public const float MaxFriction = 255f;
97 public const float MinDensity = 0f;
98 public const float MaxDensity = 22587f;
99 public const float MinRestitution = 0f;
100 public const float MaxRestitution = 1f;
101 public const float MaxAddForceMagnitude = 20000f;
102
103 // ===========================================================================
92 public delegate void ParamUser(BSScene scene, IConfig conf, string paramName, float val); 104 public delegate void ParamUser(BSScene scene, IConfig conf, string paramName, float val);
93 public delegate float ParamGet(BSScene scene); 105 public delegate float ParamGet(BSScene scene);
94 public delegate void ParamSet(BSScene scene, string paramName, uint localID, float val); 106 public delegate void ParamSet(BSScene scene, string paramName, uint localID, float val);