aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-29 03:13:10 +0100
committerJustin Clark-Casey (justincc)2014-07-29 03:13:10 +0100
commitf54fccba1e436c12e55da9dfa5ca089440783e16 (patch)
treed49119dd8465109126c2f6add0642fc3e036c58d /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentAllow the "debug scene set physics false|true" command to work when bulletsim... (diff)
downloadopensim-SC_OLD-f54fccba1e436c12e55da9dfa5ca089440783e16.zip
opensim-SC_OLD-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.gz
opensim-SC_OLD-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.bz2
opensim-SC_OLD-f54fccba1e436c12e55da9dfa5ca089440783e16.tar.xz
Make it possible to change avatar position update, rotation and velocity tolerances on the fly.
This is done via "debug scene set client-pos-upd, client-rot-upd, client-vel-upd". For testing purposes.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 34c6f7c..18a0491 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3182,10 +3182,6 @@ namespace OpenSim.Region.Framework.Scenes
3182 3182
3183 public override void Update() 3183 public override void Update()
3184 { 3184 {
3185 const float ROTATION_TOLERANCE = 0.01f;
3186 const float VELOCITY_TOLERANCE = 0.001f;
3187 const float POSITION_TOLERANCE = 0.05f;
3188
3189 if (IsChildAgent == false) 3185 if (IsChildAgent == false)
3190 { 3186 {
3191 // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to 3187 // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to
@@ -3202,9 +3198,9 @@ namespace OpenSim.Region.Framework.Scenes
3202 3198
3203 if (!updateClients) 3199 if (!updateClients)
3204 updateClients 3200 updateClients
3205 = !Rotation.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) 3201 = !Rotation.ApproxEquals(m_lastRotation, Scene.ClientRotationUpdateTolerance)
3206 || !Velocity.ApproxEquals(m_lastVelocity, VELOCITY_TOLERANCE) 3202 || !Velocity.ApproxEquals(m_lastVelocity, Scene.ClientVelocityUpdateTolerance)
3207 || !m_pos.ApproxEquals(m_lastPosition, POSITION_TOLERANCE); 3203 || !m_pos.ApproxEquals(m_lastPosition, Scene.ClientPositionUpdateTolerance);
3208 3204
3209 if (updateClients) 3205 if (updateClients)
3210 { 3206 {