From 759850cbc179cb711ff0e04d0dd882753f11252e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 26 Nov 2008 17:30:47 +0000 Subject: * Eliminate forceAvatarMovement() in favour of existing AddNewMovement() --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index c32691f..f6b0f68 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -721,11 +721,6 @@ namespace OpenSim.Region.Environment.Scenes m_scene.AddAgentTime(System.Environment.TickCount - m_perfMonMS); } - public void forceAvatarMovement(Vector3 position, Quaternion rotation) - { - AddNewMovement(position, rotation); - } - #region Status Methods /// @@ -1666,9 +1661,11 @@ namespace OpenSim.Region.Environment.Scenes } /// - /// Adds a new movement + /// Rotate the avatar to the given rotation and apply a movement in the given relative vector /// - protected void AddNewMovement(Vector3 vec, Quaternion rotation) + /// The vector in which to move. This is relative to the rotation argument + /// The direction in which this avatar should now face. + public void AddNewMovement(Vector3 vec, Quaternion rotation) { if (m_isChildAgent) { -- cgit v1.1