public static void ApplyMovementRuler(Ship.GenericShip thisShip, Movement.GenericMovement movement) { CurrentTemplate = GetMovementRuler(movement); SaveCurrentMovementRulerPosition(); CurrentTemplate.position = thisShip.GetPosition(); CurrentTemplate.eulerAngles = thisShip.GetAngles() + new Vector3(0f, 90f, 0f); if (movement.Direction == Movement.ManeuverDirection.Left) { CurrentTemplate.eulerAngles = CurrentTemplate.eulerAngles + new Vector3(180f, 0f, 0f); } }
public static void ApplyMovementRuler(Ship.GenericShip thisShip) { if (Selection.ThisShip.AssignedManeuver.Speed != 0) { CurrentTemplate = GetMovementRuler(); SaveCurrentMovementRulerPosition(); CurrentTemplate.position = thisShip.GetPosition(); CurrentTemplate.eulerAngles = thisShip.GetAngles() + new Vector3(0f, 90f, 0f); if (Selection.ThisShip.AssignedManeuver.Direction == Movement.ManeuverDirection.Left) { CurrentTemplate.eulerAngles = CurrentTemplate.eulerAngles + new Vector3(180f, 0f, 0f); } } }