Fulla
Evil Overlord
- Reaction score
- 31
Im having difficulties creating a guided arrow type of spell.
Basically im not sure how to make the missile's direction change to pursue enemy units.
This is how I've been doing it:
1 - Get Unit facing angle of missle
2 - Get the angle between missle + nearest unit
3 - Alter unit facing of missile, Slightly more towards nearest unit.
Im stuck on step 3, how do I alter a units facing by just a tiny (Say 5 degrees) so that its facing is slightly more aligned towards nearest unit.
thx
Basically im not sure how to make the missile's direction change to pursue enemy units.
This is how I've been doing it:
1 - Get Unit facing angle of missle
2 - Get the angle between missle + nearest unit
3 - Alter unit facing of missile, Slightly more towards nearest unit.
Im stuck on step 3, how do I alter a units facing by just a tiny (Say 5 degrees) so that its facing is slightly more aligned towards nearest unit.
thx