I'm trying to make a game object flee away. How can i create a fleeing AI?
asked Nov 21 '10 at 09:45 PM
The simplest method would be to compute the 'flee direction' as follows:
And then use the computed direction vector to move the object using whatever method is appropriate (e.g. apply a force for a rigid body, incorporate into the movement vector for a character controller, etc.).
answered Nov 21 '10 at 10:46 PM