And to make it even faster
You can't get escape angle higher than Pi/2 by the traditional formula simply because it is impossible.
If your formula can, it must be wrong.
- Found it!
- It should be sin(a) / (v / 8 - cos(a) / 2).
- I found a formula higher than Traditional MEA and this one should be correct.
Math.asin(Math.sin(angle) / (bulletSpeed / 8 - Math.cos(angle) / 2))
I don't think that this one is wrong. I only added advancing velocity to the Traditional MEA which shouldn't break anything with the calculations.
No, advancing velocity makes distance not constant, therefore you mast use integral.
I don't need integral. I can get the average distance.
distance - (advancingVelocity * timeToHit / 2) = bulletFloatTime - advancingVelocity / 2
No you can't use average distance, as distance is used like x / distance, not x * distance.