kingkwong92
Well-Known Member
- Reaction score
- 25
Got a mean headache from trying to work this out.
I have a dagger (D) throw ability and a ninja star (S) throw ability.
Both a dummy units in a slide trigger.
Every 0.01 seconds they move a distance of speed(D) or speed(S).
I'm trying to make a trigger which detects when a dagger is within X range and if they also have a dagger or a ninja star, they will throw it and hit the incoming ninja star or dagger if it is coming from the front. I want to find the angle in which I have to throw the dagger or NS to intercept the incoming projectile. Is there any formula to predict the path of the projectile?
So far I have:
Point A = Position of thrown
Point B = Position of deflecting unit
Angle(AtoB) - Angle(A-facing) = Angle - Angle(B-A)
I havn't taken into account the speed of the projectiles. Atm I have no idea what I'm doing.
Any ideas???
I have a dagger (D) throw ability and a ninja star (S) throw ability.
Both a dummy units in a slide trigger.
Every 0.01 seconds they move a distance of speed(D) or speed(S).
I'm trying to make a trigger which detects when a dagger is within X range and if they also have a dagger or a ninja star, they will throw it and hit the incoming ninja star or dagger if it is coming from the front. I want to find the angle in which I have to throw the dagger or NS to intercept the incoming projectile. Is there any formula to predict the path of the projectile?
So far I have:
Point A = Position of thrown
Point B = Position of deflecting unit
Angle(AtoB) - Angle(A-facing) = Angle - Angle(B-A)
I havn't taken into account the speed of the projectiles. Atm I have no idea what I'm doing.
Any ideas???