Finding angle to hit a target

Given the initial speed of an object, gravity, and the target position, how would I find the angle to shoot a projectile at to hit said target

It’s not exactly a simple question. You’re basically dealing with ballistic trajectories and those can get complicated pretty quick. Here’s an overview:

2 Likes

the equations don’t work unless the target and bullet start point are on the same y position as each other

You will have to start expanding on the equations that article is teaching you about.

1 Like

nvm, I got it working