OpenSim.Region.Framework.Scenes.ScenePresence.TeleportWithMomentum C# (CSharp) Method

TeleportWithMomentum() public method

public TeleportWithMomentum ( Vector3 pos ) : void
pos Vector3
return void
        public void TeleportWithMomentum(Vector3 pos)
        {
            bool isFlying = false;
            if (m_physicsActor != null)
                isFlying = m_physicsActor.Flying;

            RemoveFromPhysicalScene();
            AbsolutePosition = pos;
            AddToPhysicalScene(isFlying);
            if (m_appearance != null)
            {
                if (m_appearance.AvatarHeight > 0)
                    SetHeight(m_appearance.AvatarHeight);
            }

            SendTerseUpdateToAllClients();
        }
ScenePresence