TEST added avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped) to scenepresence.cs

This commit is contained in:
UbitUmarov
2012-04-27 01:06:07 +01:00
parent fc576df273
commit 2cf6023892

View File

@@ -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);