NPC free way travel and obstacle avoidance

An example of movement for NPCs to any point on the map without getting stuck in objects is presented. Using other default systems, from the graphics engine, advanced movement routes for NPCs can be created.

How it works: an object is located in an Area3D, inside the Area3D the bypass points are located, immediately outside the Area3D the exit points of the Area3D. When an NPC positions itself on a target point in the Area3D, and must stay for a while at that point, it will use the nearest exit point in the nearby Area3D, in order not to enter the object on the next route.

5 Likes

That’s cool.

1 Like