And to make it even faster
Fragment of a discussion from User talk:Dsekercioglu/MEA
Jump to navigation
Jump to search
I don't need integral. I can get the average distance.
distance - (advancingVelocity * timeToHit / 2) = bulletFloatTime - advancingVelocity / 2
Dsekercioglu (talk)
No you can't use average distance, as distance is used like x / distance, not x * distance.
- It is equal at infinity.
(8 / 5 + 1 + 8 / 11) / 3 = 1.109090909... (8 / 5 + 8 / 6.5 + 1 + 8 / 9.5 + 8 / 11) / 5 = 1.080029444...
- This goes closer to 1 every time I decrease the step size.
Dsekercioglu (talk)