Introducing the box2d trajectory calculator!
This is a calculation script, made entirely for GameMaker's built-in physics engine, Box2D.
With this you could predict how a projectile will fly before it starts flying, like in that bird game.
What can it do?
It can predict the parabola path of any physics bodies.
It can predict the max height & distance the projectile will reach.
It supports collision detection during the calculation.
It supports the "linear damping" property and is aware of the speed limitations of box2d physics.
It supports the world x/y gravity & pixel-to-metres properties of box2d physics.
Each script comes with detailed commentaries on how to use
With all those information gathered, you can use them in various ways to your advantage:
Render a predicted parabola for your tanks and weapons
Instantly know where a projectile will land, without actually firing it and waiting for it to land
Get a predicted coordinate of the point of impact with any physical objects, with the script's collision detection ability
And much more, with your own creativity...