I'm programming a game where I need projectiles to hit moving targets. I was able to make my projectile hit accurately a stationary target using a formula I found on Wikipedia about projectile trajectories.
Now, I couldn't figure out how to hit a moving target. So I stumbled upon his question: Trajectory of a projectile meets a moving object (2D)
I would be very happy to understand how could I solve this equation in order to get the theta value. I was never good at mathematics, and unfortunely, learning math by myself has been very hard. So, could anybody explain me the required steps to end with something like $θ = (...)$. The equation of the matter is the following: $$gx^2+2(v\cosθ+u\cosϕ)(vy\cosθ+uy\cosϕ−vx\sinθ+ux\sinϕ)=0$$
Thanks in advance. (if anything is not correct, please inform me, first post :))