aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
diff options
context:
space:
mode:
authornlin2009-07-08 01:41:05 +0000
committernlin2009-07-08 01:41:05 +0000
commit0ec6dfb1a1bfcbe70b40927fabca956782aa2a8c (patch)
tree039a2e269c8ed6bee86c3a87e52611aba670416d /OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
parentA stab at fixong a Windows build break (diff)
downloadopensim-SC_OLD-0ec6dfb1a1bfcbe70b40927fabca956782aa2a8c.zip
opensim-SC_OLD-0ec6dfb1a1bfcbe70b40927fabca956782aa2a8c.tar.gz
opensim-SC_OLD-0ec6dfb1a1bfcbe70b40927fabca956782aa2a8c.tar.bz2
opensim-SC_OLD-0ec6dfb1a1bfcbe70b40927fabca956782aa2a8c.tar.xz
Experimental fix for tilted avatar capsule, Mantis #2905
Set av_capsule_tilted to false in opensim.ini. Default is true, so there is no change in avatar behavior (and no breaking of existing content which relies on the tilted capsule). This commit straightens up the avatar capsule so it behaves consistently (e.g. same collision behavior against prims regardless of which direction the avatar is coming from; ability to fit through narrow doorways). Please note this introduces other side effects which have not been fixed. In particular: * The avatar frequently falls through the terrain if it is not flat, though the avatar behaves pretty well on flat terrain. This requires investigation of the ode terrain collider. * The apparent foot position of the avatar with respect to the ground is changed. This requires investigation of the avatar height/capsule height. Please consider this as work in progress.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdePlugin.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 0f92358..889afb6 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -199,6 +199,8 @@ namespace OpenSim.Region.Physics.OdePlugin
199 private float avPIDP = 1400f; 199 private float avPIDP = 1400f;
200 private float avCapRadius = 0.37f; 200 private float avCapRadius = 0.37f;
201 private float avStandupTensor = 2000000f; 201 private float avStandupTensor = 2000000f;
202 private bool avCapsuleTilted = true; // true = old compatibility mode with leaning capsule; false = new corrected mode
203 public bool IsAvCapsuleTilted { get { return avCapsuleTilted; } set { avCapsuleTilted = value; } }
202 private float avDensity = 80f; 204 private float avDensity = 80f;
203 private float avHeightFudgeFactor = 0.52f; 205 private float avHeightFudgeFactor = 0.52f;
204 private float avMovementDivisorWalk = 1.3f; 206 private float avMovementDivisorWalk = 1.3f;
@@ -426,6 +428,7 @@ namespace OpenSim.Region.Physics.OdePlugin
426 avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", 1.3f); 428 avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", 1.3f);
427 avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", 0.8f); 429 avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", 0.8f);
428 avCapRadius = physicsconfig.GetFloat("av_capsule_radius", 0.37f); 430 avCapRadius = physicsconfig.GetFloat("av_capsule_radius", 0.37f);
431 avCapsuleTilted = physicsconfig.GetBoolean("av_capsule_tilted", true);
429 432
430 geomContactPointsStartthrottle = physicsconfig.GetInt("geom_contactpoints_start_throttling", 3); 433 geomContactPointsStartthrottle = physicsconfig.GetInt("geom_contactpoints_start_throttling", 3);
431 geomUpdatesPerThrottledUpdate = physicsconfig.GetInt("geom_updates_before_throttled_update", 15); 434 geomUpdatesPerThrottledUpdate = physicsconfig.GetInt("geom_updates_before_throttled_update", 15);