- Joined
- Aug 1, 2013
- Messages
- 4,658
Hi all.
I want to add a feature to my missile system that allows me to make a missile fly around the target.
However I cannot simply make it move to an offset of the target with a certain difference in degree every 0.03 seconds but I want it to move using a movement speed variable on the missile.
I also want the missile to instead of forcing it to an offset of the target, be moving towards that offset, so if the unit is faster than the missile, then the missile would fall behind.
The maths must be able to make the missile move around the right side of the unit, or around the left side of the unit, or around either side (best one out of the current position of the missile).
I am a bit lost in how to approach this thing so if anyone has any ideas, then please share them.
I want to add a feature to my missile system that allows me to make a missile fly around the target.
However I cannot simply make it move to an offset of the target with a certain difference in degree every 0.03 seconds but I want it to move using a movement speed variable on the missile.
I also want the missile to instead of forcing it to an offset of the target, be moving towards that offset, so if the unit is faster than the missile, then the missile would fall behind.
The maths must be able to make the missile move around the right side of the unit, or around the left side of the unit, or around either side (best one out of the current position of the missile).
I am a bit lost in how to approach this thing so if anyone has any ideas, then please share them.