void HandleNodePosition() { if (Input.GetMouseButtonUp(1)) { //IEnumerator timer = TimerToPosition(selectedNode.timeToIntersect); //StartCoroutine(timer); selectedNode = null; activelyDraggingNode = false; return; } if (Input.GetMouseButtonDown(1)) { selectedNode = SelectManeuverNode(mainCamera.ScreenToWorldPoint(Input.mousePosition)); activelyDraggingNode = true; SetManeuverNodeExecution(false); } if (Input.GetMouseButton(1)) { float trueAnomaly = CalculateTrueAnomalyOfWorldPosition(mainCamera.ScreenToWorldPoint(Input.mousePosition)); // Update node values, including position and rotation if (selectedNode != null) selectedNode.UpdateParameters(trueAnomaly); } }