get autopilot/go here to work immediately.

This works with viewer 1.23.5 and so in theory should work with libopenmetaverse.
bulletsim
Justin Clark-Casey (justincc) 2011-08-03 01:12:32 +01:00
parent 1c126e6e22
commit 0c23764ce2
1 changed files with 7 additions and 3 deletions

View File

@ -1552,9 +1552,9 @@ namespace OpenSim.Region.Framework.Scenes
updated = true; updated = true;
} }
m_log.DebugFormat( // m_log.DebugFormat(
"[SCENE PRESENCE]: bAllowUpdateMoveToPosition {0}, m_moveToPositionInProgress {1}, m_autopilotMoving {2}", // "[SCENE PRESENCE]: bAllowUpdateMoveToPosition {0}, m_moveToPositionInProgress {1}, m_autopilotMoving {2}",
allowUpdate, m_moveToPositionInProgress, m_autopilotMoving); // allowUpdate, m_moveToPositionInProgress, m_autopilotMoving);
if (allowUpdate && (m_moveToPositionInProgress && !m_autopilotMoving)) if (allowUpdate && (m_moveToPositionInProgress && !m_autopilotMoving))
{ {
@ -1684,6 +1684,10 @@ namespace OpenSim.Region.Framework.Scenes
m_moveToPositionInProgress = true; m_moveToPositionInProgress = true;
m_moveToPositionTarget = pos; m_moveToPositionTarget = pos;
Vector3 agent_control_v3 = new Vector3();
DoMoveToPositionUpdate(ref agent_control_v3, Rotation, false, true);
AddNewMovement(agent_control_v3, Rotation);
} }
private void CheckAtSitTarget() private void CheckAtSitTarget()