diff options
author | Robert Adams | 2012-12-27 06:58:07 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-27 22:12:25 -0800 |
commit | f3baed5827853c5041f042ff36cf394b1e45538f (patch) | |
tree | 3560e4990a9eb4be19e30be88e4bcbff6718fce7 /OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |
parent | BulletSim: complete applyImpulse function in BSCharacter (like I said (diff) | |
download | opensim-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-x | OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | 12 |
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); |