zerocontribution / rpg

Winter game
Apache License 2.0
0 stars 0 forks source link

BasicFollow AI: Add acceptable min range of "at destination" #31

Open robzienert opened 10 years ago

robzienert commented 10 years ago

The follower will never reach the target destination because the target is in that spot, so the AI keeps recalculating the final step.

Add a dynamic distance (width of the target entity bounding box) as a radius range that the follower will decide it is in an acceptable area and cease calculations.