aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-20 20:39:33 +0000
committerJustin Clark-Casey (justincc)2012-03-20 20:39:33 +0000
commit86bd287b5346063edb0f62ceb96ee08c6ee80c18 (patch)
tree37ef7b7d14b42ee2c15f432a15fcfe36b17dde94 /OpenSim/Region/Physics/OdePlugin/OdeScene.cs
parentrefactor: Eliminate unnecessary duplicate avCapsuleTilted (diff)
downloadopensim-SC_OLD-86bd287b5346063edb0f62ceb96ee08c6ee80c18.zip
opensim-SC_OLD-86bd287b5346063edb0f62ceb96ee08c6ee80c18.tar.gz
opensim-SC_OLD-86bd287b5346063edb0f62ceb96ee08c6ee80c18.tar.bz2
opensim-SC_OLD-86bd287b5346063edb0f62ceb96ee08c6ee80c18.tar.xz
refactor: precalculate the fixed movement factor for avatar tilting (sqrt(2)) rather than doing it multiple times on every move.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdeScene.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdeScene.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
index 1f8c2ca..842ff91 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs
@@ -185,6 +185,9 @@ namespace OpenSim.Region.Physics.OdePlugin
185 /// <summary> 185 /// <summary>
186 /// true = old compatibility mode with leaning capsule; false = new corrected mode 186 /// true = old compatibility mode with leaning capsule; false = new corrected mode
187 /// </summary> 187 /// </summary>
188 /// <remarks>
189 /// Even when set to false, the capsule still tilts but this is done in a different way.
190 /// </remarks>
188 public bool IsAvCapsuleTilted { get; private set; } 191 public bool IsAvCapsuleTilted { get; private set; }
189 192
190 private float avDensity = 80f; 193 private float avDensity = 80f;