Run away

As a possible solution to honkykong’s question about averaging angles from mobs.

If the faded mobs in the picture are assigned a badness value and are a specific angle from you (as they always are) then you can obtain a vector for each of them, where badness is the magnitude.

For all baddies, add the vectors, and that’s the way to go if you want a hope of escaping. My diagram is back to front :P

I don’t know know what happens as this system becomes dynamic, how often you need to check this graph to get worthwhile results, or if the whole thing will work at all. Maybe honkeykong will let me know.

No comments yet

Leave a reply