Rotating a point graph?

Hi there,

I have a point graph built up of points on a sphere, representing walkable areas on a planet. When I rotate the planet, the graph does not rotate - I can see via the gizmos that they get out of sync. I’ve tried parenting the object holding the graph script to the planet, but that didn’t work - is there any way for the graph to track a transform and apply it?

Thanks!

Hi

Rotating graphs is a pretty expensive operation since it requires moving every single node in the graph. You can cheat a bit by instead of rotating the graph you calculate the paths in local space and let the graph keep the same world position and rotation.
There is an example of this for the RichAI movement script in the example scene called “Moving” (available in the pro version). In that scene pathfinding is done on a moving ship.