Hi, I am having a problem with my AI. It uses PathfindingService and it moves THROUGH walls. I have the character set to CanCollide false. I made barriers that have
a PathfindingModifier inside of it (marked by the black spots in the image).
Here is an image showing the problem I am having, I have Navigation Mesh turned on to see what is happening and as you can see, the Path that it is trying to take, is going THROUGH the barrier.
The yellow dots are waypoints represented by the navigation mesh, and as shown in the image; two of the waypoints have a barrier inbetween them. Which should not be possible. The AI should pathfind around the barrier instead. It works with some barriers but this combination of Start → End positions, lead to this movement.
The yellow dots are the waypoints that the pathfinding made. And the character is following them. And as shown in the image the two points have a barrier in between them, and that should not be possible. It should pathfind around the barrier.
Yes, Its a transparent part with a PathfindingModifier named “Wall” in it.
Yes
FYI; the barrier does have a collision group so that it only collides with the character, but since the character is CanCollide false. I don’t think that matters really.
There are also some other bugs I am noticing with the pathfinding. As seen in this image, he takes a route that goes in to the table. Which is not neccessary and it’s not intended behaviour. In a normal situation the route would be to go around the table instead of going in to it, and then backing out again just to go in the same direction.
I have no idea if this is my fault, it only happens occasionally.