On a catapult, what determines how far a missile moves?

mainly, the angle of the launch and the initial velocity.