aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index d2e0726..25409c5 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1105,11 +1105,11 @@ namespace OpenSim.Region.Framework.Scenes
1105 AbsolutePosition = newpos; 1105 AbsolutePosition = newpos;
1106 1106
1107 1107
1108 m_log.DebugFormat("[avnLocalTeleport] {0} {1}", newpos, rotateToVelXY); 1108 m_log.DebugFormat("[avnLocalTeleport] to {0} {1} init rotation {3}", newpos, rotateToVelXY,Rotation);
1109 1109
1110 if (newvel.HasValue) 1110 if (newvel.HasValue)
1111 { 1111 {
1112 if (newvel == Vector3.Zero) 1112 if ((Vector3)newvel == Vector3.Zero)
1113 { 1113 {
1114 if (PhysicsActor != null) 1114 if (PhysicsActor != null)
1115 PhysicsActor.SetMomentum(Vector3.Zero); 1115 PhysicsActor.SetMomentum(Vector3.Zero);
@@ -1126,6 +1126,7 @@ namespace OpenSim.Region.Framework.Scenes
1126 y = (float)Math.Cos(x); 1126 y = (float)Math.Cos(x);
1127 x = (float)Math.Sin(x); 1127 x = (float)Math.Sin(x);
1128 Rotation = new Quaternion(0f, 0f, x, y); 1128 Rotation = new Quaternion(0f, 0f, x, y);
1129 m_log.DebugFormat("[avnLocalTeleport] final rotation {0}", Rotation);
1129 } 1130 }
1130 1131
1131 if (PhysicsActor != null) 1132 if (PhysicsActor != null)