title: Moving a gameObject along a launch arc in Unity
body: <p>I am trying to add a cannon attack that fires bombs in an arc that lands at a target X position.</p>
  <p>Here are examples of how the cannon should shoot at targets with different X positions:
  <a href="https://i.stack.imgur.com/jRoqZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jRoqZ.png" alt="Examples of how the cannon should shoot at targets with different X positions" /></a></p>
  <p>So far, I only have a script that moves the bomb directly to the player's current X position, without it moving in an arc.</p>
  <p>Note: The player's X position is recorded one time before the bomb is fired, so the target position is fixed.</p>
  <p>UPDATE: I am trying to find a way to calculate an arc that will have a bomb shoot up, then land at the player's X position at the time that the bomb was fired. So far, I have stored the player's X position in a float called lastPlayerXPos at the time that the bomb was shot, and it goes straight at a Vector2 with the X value of lastPlayerXPos. (Without the curve).</p>