aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs
diff options
context:
space:
mode:
authorRobert Adams2016-01-02 17:36:42 -0800
committerRobert Adams2016-01-10 14:53:55 -0800
commitd4e88f8883eca60021ec852a97507c2b94685452 (patch)
tree9722b54c85119556b516c79d3fa58359a56ee2f0 /OpenSim/Region/PhysicsModules/BulletS/BSParam.cs
parentchange muckwaddle name contributors.txt (diff)
downloadopensim-SC_OLD-d4e88f8883eca60021ec852a97507c2b94685452.zip
opensim-SC_OLD-d4e88f8883eca60021ec852a97507c2b94685452.tar.gz
opensim-SC_OLD-d4e88f8883eca60021ec852a97507c2b94685452.tar.bz2
opensim-SC_OLD-d4e88f8883eca60021ec852a97507c2b94685452.tar.xz
BulletSim: tweaking so avatar can be pushed. In particular, llPushObject,
which called BSCharacter.AddForce, can now move a character.
Diffstat (limited to 'OpenSim/Region/PhysicsModules/BulletS/BSParam.cs')
-rwxr-xr-xOpenSim/Region/PhysicsModules/BulletS/BSParam.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs
index c296008..aea69d7 100755
--- a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs
+++ b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs
@@ -149,7 +149,9 @@ public static class BSParam
149 public static float AvatarFlyingGroundUpForce { get; private set; } 149 public static float AvatarFlyingGroundUpForce { get; private set; }
150 public static float AvatarTerminalVelocity { get; private set; } 150 public static float AvatarTerminalVelocity { get; private set; }
151 public static float AvatarContactProcessingThreshold { get; private set; } 151 public static float AvatarContactProcessingThreshold { get; private set; }
152 public static float AvatarAddForcePushFactor { get; private set; }
152 public static float AvatarStopZeroThreshold { get; private set; } 153 public static float AvatarStopZeroThreshold { get; private set; }
154 public static float AvatarStopZeroThresholdSquared { get; private set; }
153 public static int AvatarJumpFrames { get; private set; } 155 public static int AvatarJumpFrames { get; private set; }
154 public static float AvatarBelowGroundUpCorrectionMeters { get; private set; } 156 public static float AvatarBelowGroundUpCorrectionMeters { get; private set; }
155 public static float AvatarStepHeight { get; private set; } 157 public static float AvatarStepHeight { get; private set; }
@@ -230,6 +232,8 @@ public static class BSParam
230 public static float PID_D { get; private set; } // derivative 232 public static float PID_D { get; private set; } // derivative
231 public static float PID_P { get; private set; } // proportional 233 public static float PID_P { get; private set; } // proportional
232 234
235 public static float DebugNumber { get; private set; } // A console setable number used for debugging
236
233 // Various constants that come from that other virtual world that shall not be named. 237 // Various constants that come from that other virtual world that shall not be named.
234 public const float MinGravityZ = -1f; 238 public const float MinGravityZ = -1f;
235 public const float MaxGravityZ = 28f; 239 public const float MaxGravityZ = 28f;
@@ -601,7 +605,7 @@ public static class BSParam
601 1.3f ), 605 1.3f ),
602 // For historical reasons, density is reported * 100 606 // For historical reasons, density is reported * 100
603 new ParameterDefn<float>("AvatarDensity", "Density of an avatar. Changed on avatar recreation. Scaled times 100.", 607 new ParameterDefn<float>("AvatarDensity", "Density of an avatar. Changed on avatar recreation. Scaled times 100.",
604 3500f) , // 3.5 * 100 608 350f) , // 3.5 * 100
605 new ParameterDefn<float>("AvatarRestitution", "Bouncyness. Changed on avatar recreation.", 609 new ParameterDefn<float>("AvatarRestitution", "Bouncyness. Changed on avatar recreation.",
606 0f ), 610 0f ),
607 new ParameterDefn<int>("AvatarShape", "Code for avatar physical shape: 0:capsule, 1:cube, 2:ovoid, 2:mesh", 611 new ParameterDefn<int>("AvatarShape", "Code for avatar physical shape: 0:capsule, 1:cube, 2:ovoid, 2:mesh",
@@ -626,8 +630,12 @@ public static class BSParam
626 -54.0f ), 630 -54.0f ),
627 new ParameterDefn<float>("AvatarContactProcessingThreshold", "Distance from capsule to check for collisions", 631 new ParameterDefn<float>("AvatarContactProcessingThreshold", "Distance from capsule to check for collisions",
628 0.1f ), 632 0.1f ),
633 new ParameterDefn<float>("AvatarAddForcePushFactor", "BSCharacter.AddForce is multiplied by this and mass to be like other physics engines",
634 0.315f ),
629 new ParameterDefn<float>("AvatarStopZeroThreshold", "Movement velocity below which avatar is assumed to be stopped", 635 new ParameterDefn<float>("AvatarStopZeroThreshold", "Movement velocity below which avatar is assumed to be stopped",
630 0.1f ), 636 0.1f,
637 (s) => { return (float)AvatarStopZeroThreshold; },
638 (s,v) => { AvatarStopZeroThreshold = v; AvatarStopZeroThresholdSquared = v * v; } ),
631 new ParameterDefn<float>("AvatarBelowGroundUpCorrectionMeters", "Meters to move avatar up if it seems to be below ground", 639 new ParameterDefn<float>("AvatarBelowGroundUpCorrectionMeters", "Meters to move avatar up if it seems to be below ground",
632 1.0f ), 640 1.0f ),
633 new ParameterDefn<int>("AvatarJumpFrames", "Number of frames to allow jump forces. Changes jump height.", 641 new ParameterDefn<int>("AvatarJumpFrames", "Number of frames to allow jump forces. Changes jump height.",
@@ -812,6 +820,9 @@ public static class BSParam
812 new ParameterDefn<float>("LinkConstraintSolverIterations", "Number of solver iterations when computing constraint. (0 = Bullet default)", 820 new ParameterDefn<float>("LinkConstraintSolverIterations", "Number of solver iterations when computing constraint. (0 = Bullet default)",
813 40 ), 821 40 ),
814 822
823 new ParameterDefn<float>("DebugNumber", "A console setable number sometimes used for debugging",
824 1.0f ),
825
815 new ParameterDefn<int>("PhysicsMetricFrames", "Frames between outputting detailed phys metrics. (0 is off)", 826 new ParameterDefn<int>("PhysicsMetricFrames", "Frames between outputting detailed phys metrics. (0 is off)",
816 0, 827 0,
817 (s) => { return s.PhysicsMetricDumpFrames; }, 828 (s) => { return s.PhysicsMetricDumpFrames; },