diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 |
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 | { |