LurkerAspect
Now officially a Super Lurker
- Reaction score
- 118
Hi again wasn't sure where to post this but considering I'll eventually use such a system in WC3, posting here seems appropriate...
OK. So I'm trying to get a general formula where I give a set of variables and get a result. What I want to do is find/create an equation that can predict where to fire a projectile so that it will collide with the target when it reaches that point, where the two paths intercept. You all know how if you give a unit in Wc3 a non-homing projectile, it will try to intercept the target in a similar manner to what I'm looking for.
So, I want to give the coordinates of the target, the coordinates of the shooter, and the speeds of the two objects, and be able to get coordinates back of the intercept point. I'm looking for a formula that can be used on a conventional cartesian plane, and from there I can adapt it to wc3 or whatever.
Does anyone know of such a formula or how I would go about creating one?
OK. So I'm trying to get a general formula where I give a set of variables and get a result. What I want to do is find/create an equation that can predict where to fire a projectile so that it will collide with the target when it reaches that point, where the two paths intercept. You all know how if you give a unit in Wc3 a non-homing projectile, it will try to intercept the target in a similar manner to what I'm looking for.
So, I want to give the coordinates of the target, the coordinates of the shooter, and the speeds of the two objects, and be able to get coordinates back of the intercept point. I'm looking for a formula that can be used on a conventional cartesian plane, and from there I can adapt it to wc3 or whatever.
Does anyone know of such a formula or how I would go about creating one?