How to Aim Offset on Mouse Cursor Position

What if I need to adjust the aim
offset anyway on mouse position?

Then the prediction would not work great here as it’s somewhat physics driven.

In this case I’d do it manually and draw a 3d curve as the arrow flies using a spline.

  • point 0 is at the player’s position
  • point 2 is at the target (mouse position)
  • point 1 (the curve’s apex) is (p0+p2)/2 + some Z (based on the distance between p0 & p2 perhaps)

And it does not limit you to visual clues only. Since we now have a curving, fully interpolated spline, you can use it to drive a projectile home along that spline, and with 100% accuracy to boot.

I’ll try to dig up an example.