The bullet is already heading toward the target's xy, but I want it to progressively change toward the z position of the target at the time the bullet was fired.
Develop games in your browser. Powerful, performant & highly capable.
Determine the "slope" by saving targetZ/targetDistance to an instance variable, and setting the bullet z to distancefromorigin*slope every tick.