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

avinationmerge
UbitUmarov 2012-04-27 01:06:07 +01:00
parent fc576df273
commit 2cf6023892
1 changed files with 22 additions and 0 deletions

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