Combine AgentManagerMovement.TurnToward() methods

This commit is contained in:
cinder
2025-06-06 10:22:52 -05:00
parent d576c0de99
commit 5cfd6cc7a6

View File

@@ -501,16 +501,6 @@ namespace OpenMetaverse
SendUpdate(reliable);
}
/// <summary>
/// Rotates the avatar body and camera toward a target position.
/// This will also anchor the camera position on the avatar
/// </summary>
/// <param name="target">Region coordinates to turn toward</param>
public bool TurnToward(Vector3 target)
{
return TurnToward(target, true);
}
/// <summary>
/// Rotates the avatar body and camera toward a target position.
/// This will also anchor the camera position on the avatar
@@ -518,7 +508,7 @@ namespace OpenMetaverse
/// <param name="target">Region coordinates to turn toward</param>
/// <param name="sendUpdate">whether to send update or not</param>
/// <returns>Returns if TurnToward operation was successful</returns>
public bool TurnToward(Vector3 target, bool sendUpdate)
public bool TurnToward(Vector3 target, bool sendUpdate = true)
{
if (!Client.Settings.SEND_AGENT_UPDATES)
{