Seeker taking shortcuts

Hi
Im tweaking the Grid Graph tutorial and I run into some trouble I cannot fix, I’m trying to emulate a 4 ways path (think old JRPG, FF/Pokemon) and the robot seems to take little shortcuts when gets near the next waypoint (see screenshot), is there a way to configure this so its a strict point-to-point path?

I’m already using 4 ways and manhattan but to no avail.

Hi

That is because the included movement scripts are built to provide smooth paths, not jagged ones, so they cut corners a bit. You can try to follow the get started tutorial and write your own movement script which just uses a lerp between the points in the path. That should be really easy to do and give you the result that you want. http://arongranberg.com/astar/docs/getstarted.php

I’m already overriding the update function of AIPath with this

gameObject.transform.position = Vector3.Slerp(transform.position, path.vectorPath[currentWaypointIndex], Time.deltaTime);

Ok, ill guess i’ll try that, thanks for the quick reply