A* Pathfinding Project

How to avoid extra Lerp when changing paths?


#1

Hi there! :slight_smile:

First, excuse me if there is an issue that solves this, but I didn’t know how to look for it.

I leave a video to explain what happens.

Video (dropbox)

As you can see, it makes a Lerp towards the last point of the previous path, instead of moving directly towards the new path.

Thanks in advance! :smiley:


#2

Hi

For a navmesh/recast graph like that I would recommend using the RichAI movement script instead of the AILerp script. It will look smoother.