How to check where the Cannon ball will land before shooting?

So I’m trying to figure out how would I find where the Cannon Ball will land before firing so the player knows where he’s shooting. Sadly I don’t know any math equations to figure this out if anyone knows let me know what you think.

here’s some examples

this is the code I use for firing the cannon so the cannon ball can reach exact where the cannon is aiming

1 Like

Projectile motion, here is a quick example tool for quick results:

To understand the math it’s this tutorial. Basically integrate starting from the equation a(t) = g or acceleration is equal to constant gravity. Also has the beam mathematics to model it with bezier curves that I used.

is a good tutorial on how to make the curve but it doesn’t show on how to calculate where the canon will land tho :frowning: