diff options
author | Robert Adams | 2012-12-28 12:01:57 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-28 12:01:57 -0800 |
commit | 7266eeca6efd10852a062cfc802a50c346b7b119 (patch) | |
tree | 4a83775444b657a692aeef82b701eb5fce6ec9bc /OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |
parent | BulletSim: fix problem of avatars appearing to walk through walls (diff) | |
download | opensim-SC_OLD-7266eeca6efd10852a062cfc802a50c346b7b119.zip opensim-SC_OLD-7266eeca6efd10852a062cfc802a50c346b7b119.tar.gz opensim-SC_OLD-7266eeca6efd10852a062cfc802a50c346b7b119.tar.bz2 opensim-SC_OLD-7266eeca6efd10852a062cfc802a50c346b7b119.tar.xz |
BulletSim: add 'AvatarAlwaysRunFactor' parameter and use in setTargetVelocity
to implement the 'always run' feature.
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 f8f24bd..5c8553a 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSParam.cs | |||
@@ -68,6 +68,7 @@ public static class BSParam | |||
68 | // Avatar parameters | 68 | // Avatar parameters |
69 | public static float AvatarFriction { get; private set; } | 69 | public static float AvatarFriction { get; private set; } |
70 | public static float AvatarStandingFriction { get; private set; } | 70 | public static float AvatarStandingFriction { get; private set; } |
71 | public static float AvatarAlwaysRunFactor { get; private set; } | ||
71 | public static float AvatarDensity { get; private set; } | 72 | public static float AvatarDensity { get; private set; } |
72 | public static float AvatarRestitution { get; private set; } | 73 | public static float AvatarRestitution { get; private set; } |
73 | public static float AvatarCapsuleWidth { get; private set; } | 74 | public static float AvatarCapsuleWidth { get; private set; } |
@@ -367,6 +368,11 @@ public static class BSParam | |||
367 | (s,cf,p,v) => { AvatarStandingFriction = cf.GetFloat(p, v); }, | 368 | (s,cf,p,v) => { AvatarStandingFriction = cf.GetFloat(p, v); }, |
368 | (s) => { return AvatarStandingFriction; }, | 369 | (s) => { return AvatarStandingFriction; }, |
369 | (s,p,l,v) => { AvatarStandingFriction = v; } ), | 370 | (s,p,l,v) => { AvatarStandingFriction = v; } ), |
371 | new ParameterDefn("AvatarAlwaysRunFactor", "Speed multiplier if avatar is set to always run", | ||
372 | 1.3f, | ||
373 | (s,cf,p,v) => { AvatarAlwaysRunFactor = cf.GetFloat(p, v); }, | ||
374 | (s) => { return AvatarAlwaysRunFactor; }, | ||
375 | (s,p,l,v) => { AvatarAlwaysRunFactor = v; } ), | ||
370 | new ParameterDefn("AvatarDensity", "Density of an avatar. Changed on avatar recreation.", | 376 | new ParameterDefn("AvatarDensity", "Density of an avatar. Changed on avatar recreation.", |
371 | 3.5f, | 377 | 3.5f, |
372 | (s,cf,p,v) => { AvatarDensity = cf.GetFloat(p, v); }, | 378 | (s,cf,p,v) => { AvatarDensity = cf.GetFloat(p, v); }, |