Local Space AI Path, LocalSpaceRichAI equivalent for 2D

I re-read my code and I found out that Aron said “…from graph space to world space” and then realized I was accidentally doing the opposite. It works like a charm right now!

I suggest everyone who is interested in a local space AI path to read the second forum post with this answer.

Make sure to use transform.Transform(); in the get functions of position, endPoint, and tangent. And visa versa. I set the point and circleCenter3D after checking the path like this:

point = transform.InverseTransform(point);

I also changed the transform name to graphTransform, as there’s already a transform being used in the MoveToCircleIntersection2D function.

@aron_granberg would it be possible for me to give you my code, so that you can add it to the moving example? I think it would save some people a slight headache! :smile:

4 Likes