refactor: Combine ScenePresence.Teleport() and TeleportWithMomentum()

These are identical apart from setting Velocity = zero, which has no practical effect anyway since this is zeroed when the avatar is added back to the physics scene.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-04-25 02:07:55 +01:00
parent a65ca24701
commit 683cfc6f82
2 changed files with 1 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public Vector3 WorldPosition
{
get { return GetSP().AbsolutePosition; }
set { GetSP().TeleportWithMomentum(value); }
set { GetSP().Teleport(value); }
}
public bool IsChildAgent