get each path position the AI will take to reach the target

Hello!

I am currently making an AI that uses root motion as movement. What im trying to do is getting the p1,p2,p3, and p4 in the picture i uploaded and calibrate the orientation and the locomotion of my character but i do not know what function should i use to get the points in the path. I already browse the documentation but I did not found a function that could get the information I needed. Thank you. :slight_smile: