Calculating Launch Angle
Blitz3D Forums/Blitz3D Programming/Calculating Launch Angle
| ||
My mind's gone a blank so I'm looking for some help here. What I need is the angle of elevation a weapon needs to be at to launch a projectile and hit a target. The target can be higher or lower than the weapon. I'm working in 2d so have the following information available: X0 = X coord of weapon Y0 = Y coord of weapon X1 = X coord of target Y1 = Y coord of target Speed = Launch Speed of projectile Gravity = -9.8 I'm not interested in including wind resistence etc.. Thanks for any help. Cheers Stevie |
| ||
I was all ready to break out a two-liner, then I noticed you want to fire uphill. Oh well, I've written a big long blog post attempting to explain it. |
| ||
Excellent - thanks Warpy. I post back if I've any questions. |
| ||
Stevie, dont wait for questions to post back, throw the rest of us a bone! :) I would like to know how to do this as well |
| ||
then read my blog post. |