I have found a formula in FT which is so good, it can accurately let you skip-bomb (well actually, more like a very fast torpedo) a moving ship from 10 km away.
But here's the problem: the formula only works in DebugExpression, it doesn't work when I apply the formula to a light or something.
It seems that number overflow is the problem here.
The formula uses the Pythagorean theorem to calculate the distance between the bomb and the target at the estimated impact time. And as such, it requires squaring the coordinates.
This makes the numbers very big, it could easily reach the millions, and as such, the funky trees fail to function.
I tried a lot of things, minimizing the number, square root, rounding, but none of them works.
Does anyone have some ways to avoid this issue?