aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 0eefd06..7300a24 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -122,6 +122,8 @@ namespace OpenSim.Region.Framework.Scenes
122 private bool m_useFlySlow = false; 122 private bool m_useFlySlow = false;
123 private bool m_usePreJump = false; 123 private bool m_usePreJump = false;
124 124
125 private float m_speedModifier = 1.0f;
126
125 private Quaternion m_bodyRot= Quaternion.Identity; 127 private Quaternion m_bodyRot= Quaternion.Identity;
126 128
127 public bool IsRestrictedToRegion; 129 public bool IsRestrictedToRegion;
@@ -563,6 +565,12 @@ namespace OpenSim.Region.Framework.Scenes
563 set { m_inTransit = value; } 565 set { m_inTransit = value; }
564 } 566 }
565 567
568 public float SpeedModifier
569 {
570 get { return m_speedModifier; }
571 set { m_speedModifier = value; }
572 }
573
566 #endregion 574 #endregion
567 575
568 #region Constructor(s) 576 #region Constructor(s)
@@ -2224,7 +2232,7 @@ namespace OpenSim.Region.Framework.Scenes
2224 Vector3 direc = vec * rotation; 2232 Vector3 direc = vec * rotation;
2225 direc.Normalize(); 2233 direc.Normalize();
2226 2234
2227 direc *= 0.03f * 128f; 2235 direc *= 0.03f * 128f * m_speedModifier;
2228 if (m_physicsActor.Flying) 2236 if (m_physicsActor.Flying)
2229 { 2237 {
2230 direc *= 4; 2238 direc *= 4;