The chimney of a stationary toy train consists of a vertical spring gun that shoots steel balls a meter or so straight into the air – so straight that the ball always falls back into the chimney.

If the train is moving, under which condition will the ball fall back into the chimney?