About pathfinding

It’s well known and debated how sometimes zois are looking for the farthest object to look for interation or how pre-made pathfinding brokes after trying to edit premade lots, i want to post my suggestion.

Zoi’s radial pathfinding

Other previous posts discussed about it with some examples: “Zoi looking for a sink, closest in distance but in the nearby room, so it makes the zoi look for the farthest sink when it has to leave the current room”. Another example i found myself is a zoi starving looking for food on the upper floor when it has a snack machine in front of him because he’s looking for the maximum nutrition.

The ‘radial sensor’ is good enough if the logic prioritized the current room when looking for the nearest object to interact with. Making the zoi to choose the farthest “sink” from the logic perspective becasuse it is inside the current room.

Broken pathfinding

The source of this problem is the hardcoded data, that makes impossible to edit pre-built lots for careers and also creates problem with some autonomy behaviors which make a zoi to go from point A to B straight fordward even when it doesn’t makes sense.

A forever more fix for this would be to have a tool, while avoiding the SDK from UE5… an UI to set the object’s entry/exit points manually in the Construction Mode, so we could design lots and rooms, edit walls and doors and then test and rearrange the correct path for the zoi to find the new location.