Make a unit ignore walkability

Hi!
I’m trying to implement flying characters in my 2D game, right now I’ve set mountains and oceans to be unpassable since I don’t want my Human characters traversing them. But in order to implement flying creatures, I need some way for them to just completely ignore the walkability of a node. I have looked into using tags, but found a downside in that I could no longer use IsPathPossible regularly since the overload of that function that uses tags can be very slow, and I currently use it a lot. Is there any way to do this? Thanks!

Hi

It’s easiest to create a new graph that has the necessary rules (in this case there wouldn’t be any obstacles at all there). This has a bit of memory overhead, but unless your game is really large I don’t think it should be an issue. See https://arongranberg.com/astar/docs/multipleagenttypes.html