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).
parent
39eab72d7c
commit
dcc36507f3
|
@ -3674,10 +3674,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
Vector3 origPosition = pos2;
|
Vector3 origPosition = pos2;
|
||||||
Vector3 vel = Velocity;
|
Vector3 vel = Velocity;
|
||||||
|
|
||||||
// Compute the avatar position in the next physics tick.
|
// Compute the future avatar position.
|
||||||
// If the avatar will be crossing, we force the crossing to happen now
|
// If the avatar will be crossing, we force the crossing to happen now
|
||||||
// in the hope that this will make the avatar movement smoother when crossing.
|
// in the hope that this will make the avatar movement smoother when crossing.
|
||||||
pos2 += vel * 0.1f;
|
pos2 += vel * 0.05f;
|
||||||
|
|
||||||
if (m_scene.PositionIsInCurrentRegion(pos2))
|
if (m_scene.PositionIsInCurrentRegion(pos2))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue