Furby
Current occupation: News poster
- Reaction score
- 144
I was always wondering how Blizzard made wc3 missiles, I just mean those non-homing ones. They are really not homing to target, but they hit it even if it's moving. How's that possible?
Missiles guesses the position of target. This is what I lack in projectile systems. I recently downloaded and implemented Kenny's projectile system to my map, applied to units and then when I tested map, everything worked just perfectly except the arrow from archers looked really unrealistic, homing arrow.. that is unnatural.
So, I decided to make some formula to calculate the position of target when attacking it with ranged unit with non-homing missiles.
Here's some more exaplanation:
First is normal non-homing missile, as you can see if the target is moving the missile will miss the target.
Second is with base formula to calculate target's position after time in which the missile will travel to the point.
This way is little inaccurate, because the missile needs more time to get to target or less depends which angle is the target faced, in the example the missile would hit the dark-blue point position, but target would be already in teal point position.
Here's fix for this, we use the previous calculation to get the exact position.
Problem is that attacker will always miss the target when unit is turning around, I'm looking for the most efficient fix for this.
Any help, comments, constructive criticism or ideas appreciated. :thup:
Check out the demo map.
Missiles guesses the position of target. This is what I lack in projectile systems. I recently downloaded and implemented Kenny's projectile system to my map, applied to units and then when I tested map, everything worked just perfectly except the arrow from archers looked really unrealistic, homing arrow.. that is unnatural.
So, I decided to make some formula to calculate the position of target when attacking it with ranged unit with non-homing missiles.
Here's some more exaplanation:
First is normal non-homing missile, as you can see if the target is moving the missile will miss the target.
Second is with base formula to calculate target's position after time in which the missile will travel to the point.
This way is little inaccurate, because the missile needs more time to get to target or less depends which angle is the target faced, in the example the missile would hit the dark-blue point position, but target would be already in teal point position.
Here's fix for this, we use the previous calculation to get the exact position.
Problem is that attacker will always miss the target when unit is turning around, I'm looking for the most efficient fix for this.
Any help, comments, constructive criticism or ideas appreciated. :thup:
Check out the demo map.