Approaches to pathfinding around static bodies

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ballzcentie

So I am aware that all of the navigation stuff is changing in 4.0 but I’ll only use 4.0 when it releases in beta at the earliest.

I have a Navigation2D with a TileMap as a child with some ground tiles that have navigation polygons on them. I then have some StaticBodies that are trees that I want to be able to path around. What are some approaches to this? I’m feeling a bit lost as to how to go about this. I’ve started off with object avoidance like boids/flocking algorithms but that only moves the player by a small amount and the player still ends up by moving through the tree most of the time.

Any help?