- Home /
Pathfinding Returned Path dips AI into the ground
I don't know if this is a common problem or not, but I'm using the A* Pathfinding Free (and really liking it). And I've got my character, Vehicle (with the Seeker script), navigating around some pillars, all on top of Ground, which is a Cube.
Now I have my Grid Graph (attached to Ground) 0.1 units below Ground, and the Path returned from Seeker.StartPath() is correct from start to end along Ground, but the path takes my Vehicle (originally at a height of 1.6 so that the Vehicle won't clip with the Ground) down into the Ground (at a height of 0). And once the Vehicle nears the endpoint, it rises back up to its original height of 1.6.
CLARIFICATION:
::
Vehicle (parent object of Cubes and Spheres) at height 1.6
Ground (Cube) at height 0
Grid Graph at height -0.1
::
I could just ignore the Y axis when Translating my Vehicle, but I'd rather fix the actual Path so I can learn something more about how the Pathfinding actually works.
Does anyone know how to fix the returned Path? Thanks in advance.