diff options
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 46a9469..d8203dd 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1099,6 +1099,28 @@ namespace OpenSim.Region.Framework.Scenes | |||
1099 | SendTerseUpdateToAllClients(); | 1099 | SendTerseUpdateToAllClients(); |
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | public void avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped) | ||
1103 | { | ||
1104 | CheckLandingPoint(ref newpos); | ||
1105 | AbsolutePosition = newpos; | ||
1106 | |||
1107 | if (newrot.HasValue) | ||
1108 | { | ||
1109 | // TODO | ||
1110 | } | ||
1111 | |||
1112 | if (Stopped) | ||
1113 | { | ||
1114 | if (PhysicsActor != null) // speed up physics stop | ||
1115 | PhysicsActor.SetMomentum(Vector3.Zero); | ||
1116 | Velocity = Vector3.Zero; | ||
1117 | } | ||
1118 | |||
1119 | SendTerseUpdateToAllClients(); | ||
1120 | } | ||
1121 | |||
1122 | |||
1123 | |||
1102 | public void StopFlying() | 1124 | public void StopFlying() |
1103 | { | 1125 | { |
1104 | ControllingClient.StopFlying(this); | 1126 | ControllingClient.StopFlying(this); |