From 2cf6023892545e1e61669e67f9251858a09edd83 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 27 Apr 2012 01:06:07 +0100 Subject: TEST added avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped) to scenepresence.cs --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 SendTerseUpdateToAllClients(); } + public void avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped) + { + CheckLandingPoint(ref newpos); + AbsolutePosition = newpos; + + if (newrot.HasValue) + { + // TODO + } + + if (Stopped) + { + if (PhysicsActor != null) // speed up physics stop + PhysicsActor.SetMomentum(Vector3.Zero); + Velocity = Vector3.Zero; + } + + SendTerseUpdateToAllClients(); + } + + + public void StopFlying() { ControllingClient.StopFlying(this); -- cgit v1.1