I have a system where many actors (a few dozen) are moving around a large grid graph in a labyrinth.
I need a powerup that lets certain units walk through the walls (but not the outside walls, and not other objects like landing pods, etc…).
I think the right solution is to have two grid graphs that run simultaneously, and put all required colliders for into different layers - one layer is “hit everything”, and the other layer is “ghost upgrade”. - then calculate one that calculates using everything including the ghost upgrade colliders, and the other that calculates just on the ghost upgrade colliders.
When the powerup is activated, I need the ghost upgraded characters to forget all their previous paths, and start existing on the other grid graph.
I’m just really no sure how to do this. Are there any examples or useful code that shows how to run two grid graphs simultaneously and switch different actors between them during runtime?