Recast NavmeshTile verts in GraphSpace to WorldSpace

3d Math is not my strength.

Is it fairly easy to convert the Int3[] from NavmeshTile.vertsInGraphSpace to a worldspace Vector3 position? I see there is a graph transform there, but not sure how to use it.

I would like to be able to get my AI to consider paths that go into the corners of the Nav Mesh.

Hi

You can use

var pointInWorldSpace = recastGraph.transform.Transform((Vector3)pointInGraphSpace);

Thanks very much! I was using the transform on the tile rather than the graph! Doh!

1 Like