zero out SP velocity before calling SP.Teleport(), as the client expects (though this is also effectively done by physics at the moment)

0.7.4.1
Justin Clark-Casey (justincc) 2012-04-25 03:47:26 +01:00
parent 683cfc6f82
commit af86e2939c
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
sp.ControllingClient.SendTeleportStart(teleportFlags); sp.ControllingClient.SendTeleportStart(teleportFlags);
sp.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags); sp.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags);
sp.Velocity = Vector3.Zero;
sp.Teleport(position); sp.Teleport(position);
foreach (SceneObjectGroup grp in sp.GetAttachments()) foreach (SceneObjectGroup grp in sp.GetAttachments())