I am firing from a moving pawn at another moving pawn and trying to find the location in world space the pawn needs to aim at to hit the target. The capsule component is the pawn firing and the hit actor lock on is the target. Something is wrong, and I cant seem to figure it out.
Setting up variables
Setting up A, B, and C for the quadratic equation
The two equations for whether the target is accelerating or not
Final formula for getting the aim location