- #1
VexCarido
- 8
- 4
Looking for some guidance on how to set up the equations for a projectile intercept given that you have perfect information about the target velocity, size and weather conditions in a 3D scenario, it's for an amateur videogame that I'm developing in my spare time
For simplicity sake let's assume there's no wind force and that target object is launched from coordinate (5,100,0) at a 55 degree angle along the x-axis, with initial velocity of 40 m/s - we have to launch to intercept the projectile with a delay of 2 second after the initial object is launched. Time of Flight for the object is 6.68 seconds. and we're launching from the origin coordinate (0,0,0)
Our initial projectile launch velocity range is 60 to 120 m/s and with a solution we should end up with a list of possible combinations of angles, and projectile speeds that would successfully intercept the target.
I know how to calculate the trajectory, as well as the horizontal/vertical range & time of flight for both objects I don't think this should be more difficult than rearranging a few components of the equations of motion, but I am at a loss as to how I should go about it exactly. Is there a swift and easy & efficient way to do this?
For simplicity sake let's assume there's no wind force and that target object is launched from coordinate (5,100,0) at a 55 degree angle along the x-axis, with initial velocity of 40 m/s - we have to launch to intercept the projectile with a delay of 2 second after the initial object is launched. Time of Flight for the object is 6.68 seconds. and we're launching from the origin coordinate (0,0,0)
Our initial projectile launch velocity range is 60 to 120 m/s and with a solution we should end up with a list of possible combinations of angles, and projectile speeds that would successfully intercept the target.
I know how to calculate the trajectory, as well as the horizontal/vertical range & time of flight for both objects I don't think this should be more difficult than rearranging a few components of the equations of motion, but I am at a loss as to how I should go about it exactly. Is there a swift and easy & efficient way to do this?