What I’m trying to achieve is: when I click on an object the player should find its path to the model (+ some distance so it doesn’t stop right on it).
I used a pathfinding library with simple Three.js boxes as placeholders, and everything worked fine. When I finally decided to swap these boxes with Blender models in .glb format, the pathfinding broke.
I found out the problem arises when dealing with complex models that have more than one mesh (note: not multiple objects, simply if a part of the model is not connected through vertices to the rest of the mesh). Even when using traverse or groups, the pathfinding struggles to determine where to go.
If anyone can suggest some workaround I’ll be extremely happy
Thanks in advance!