~ Use mouse, right and left arrow keys to move Target (Blue box) ~ WASD to move the base (Yellow box) ~ Space to shoot (can just hold it)
Trajectory equation ~ https://www.collegesidekick.com/study-guides/boundless-physics/projectile-motion ~ If target is moving, it will predict the target position after 1 seconds ( you can adjust the "Prediction time" variable ) and shoot at there ~ If the red ball doesn't shoot means that there is no way to reach to the goal ~ The "Estimate reach time" will be affected by your device ( if its lagging then will be not accurate, usually less than ± 0.1 seconds )