Hi, I need to design a robot that shoots basketballs into a basketball hoop. My original idea was that the robot will auto-target on the hoop. The hoop has reflective tape around the "square" behind it, which the robot can locate. Now, when the robot locates this square, it can calculate the height it is from the hoop, the distance lengthwise, etc. So I was considering using projectile motion to calculate what angle to recline our shooting mechanism at, how much to rotate & in which direction, as well as how fast to fire in the ball, in order to automatically fire and make it into the hoop. I've taken a general physics course but the projectile motion we learned was more for learning purposes and would be less than accurate if I apply it in this situation. My question to you, is what equation or set of equations and calculations, should I use to determine all of these factors, taking into account natural factors, of say, air resistance and drag, and excluding external factors such as other robots interfering with the ball mid-flight? Thanks!