Pathfinding does not work with Unions

Created a pathfinding bot, worked perfectly! Until, I decided to include Union parts in my place. The script does not error, however pathfinding seems to dislike Unions, my bot was unable to generate a path from one side of a union part to the other, it’s easy to repro. Just make a union part and then attempt to pathfind around it. The path will never be returned, it will just continue to attempt to generate the path.

1 Like

Lets hope this fix comes with physics :stuck_out_tongue:

I think that might be due to the bounding box size of the Union. Because collisions haven’t been implemented for Union parts, the whole Union piece (basically a large cuboid/box) is seen as essentially a large brick part. Therefore, any pathfinder will avoid the whole bounding box of the union piece.

1 Like

The issue is that it can not calculate a path round a Union Part, sorry if that wasn’t clear. The method seems to yield when it reaches a union part.

Hmmm, yeah I have a repro. This is definitely not intended behavior. Good find.