Topic was automatically imported from the old Question2Answer platform.
Asked By
KramchayDig
It would be great if there is someone who have a project sample (2D or 3D) of a pathfinding AI that doesn’t clamp together when it gets near to the target.
What you want falls under the category of “steering behaviors”, a general term for coding realistic behavior on autonomous agents.
There’s a really good overview of various applications here:
The examples aren’t for Godot, but they are well-explained and should be relatively easy to implement in GDScript.
It would be nice to have a tutorial on that, as it is really useful. My way of coupling with that was using area2D, and whenever another object crosses it, it will push both objects in opposite ways.