Scaling a MeshGraph at runtime

Hi.
I’ve seen some topics about moving graphs but I was wondering if it would be possible to scale graphs as well.

Would the local coordinates solution you have in the “Moving” example work? I have the free version, so I haven’t checked the scene yet.
I’ve tried doing this with the ‘RelocateNodes’ method, but I don’t seem to be able to get it to work. I don’t see any changes after calling it and using AstarPath.active.Scan to update the positions.

Another thing I tries was changing the graph’s offset. Visually is seems to work but I have no ideia what is actually happening.

Thanks for your help.

Hi

If you want to do something like that during runtime without massive performance costs, then you really want to use the local coordinates script in the Moving scene. Moving the actual nodes will be really slow to do if you are going to do it every frame or very often.

I want to do it really often so yeah, I’ll check the Moving scene.

Thanks a lot for the quick reply Aron!
And thanks for your awesome Pathfinding!