aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-11-29 00:48:26 +0000
committerJustin Clark-Casey (justincc)2014-11-29 00:48:26 +0000
commitdcc36507f3e6d389b02ae44c482c18567b5fd458 (patch)
treee9fb0ce0eba4773cf644d660f7013ac766508d59 /OpenSim/Region/Framework
parentWhen performing region cross, don't add the velocity to the new position in E... (diff)
downloadopensim-SC_OLD-dcc36507f3e6d389b02ae44c482c18567b5fd458.zip
opensim-SC_OLD-dcc36507f3e6d389b02ae44c482c18567b5fd458.tar.gz
opensim-SC_OLD-dcc36507f3e6d389b02ae44c482c18567b5fd458.tar.bz2
opensim-SC_OLD-dcc36507f3e6d389b02ae44c482c18567b5fd458.tar.xz
Halve the prediction lag for region crossing to improve most flying region crossings without degrading the walk cross experience (neither of which have been that great anyway).
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 966152a..93dfd00 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3674,10 +3674,10 @@ namespace OpenSim.Region.Framework.Scenes
3674 Vector3 origPosition = pos2; 3674 Vector3 origPosition = pos2;
3675 Vector3 vel = Velocity; 3675 Vector3 vel = Velocity;
3676 3676
3677 // Compute the avatar position in the next physics tick. 3677 // Compute the future avatar position.
3678 // If the avatar will be crossing, we force the crossing to happen now 3678 // If the avatar will be crossing, we force the crossing to happen now
3679 // in the hope that this will make the avatar movement smoother when crossing. 3679 // in the hope that this will make the avatar movement smoother when crossing.
3680 pos2 += vel * 0.1f; 3680 pos2 += vel * 0.05f;
3681 3681
3682 if (m_scene.PositionIsInCurrentRegion(pos2)) 3682 if (m_scene.PositionIsInCurrentRegion(pos2))
3683 return; 3683 return;