public void SetWaypoint(string position) { if (!Autopilot) { return; } Vector3 proposedPos = position.Vectorized(); if (proposedPos == TransformState.HiddenPos) { return; } //Ignoring requests to set waypoint outside intended radar window if (RadarList.ProjectionMagnitude(proposedPos) > EntryList.Range) { return; } //Mind the ship's actual position Waypoint.transform.position = (Vector2)proposedPos + Vector2Int.RoundToInt(MatrixMove.ServerState.Position); EntryList.UpdateExclusive(Waypoint); // Logger.Log( $"Ordering travel to {Waypoint.transform.position}" ); MatrixMove.AutopilotTo(Waypoint.transform.position); }
private void MoveTo(Vector3 pos) { moving = true; destination = pos; mm.SetSpeed(25); mm.AutopilotTo(destination); }
public void ApproachStation() { mm.SetSpeed(25); mm.AutopilotTo(destination); }