Hello all,
I'm wondering if it is possible to handle the following problem with the new Navigation Server in Godot 4:
I have a characterbody in a scene, a tilemap and a NavigationRegion.
I have two layers for the tilemap, one for floor, one for walls.
Character should be moved by mouse click.
The wall layer tiles have collision layers, so that the character can not run through it.
This works so far.
But now I'm a little bit confused how to handle this problem:
I want to use the new Navigation system, and with the agent it works as well, but the character bumps into the wall tiles if they are in the way of the path.
The final question:
Is it possible to automatically detect collision with tilemaps within the path finding? Or do you have to set up navigation for each tile?
What would be the best workflow to do this.
My idea would be:
allow navigation over the complete scene (maybe I don't need a navigation region at all?)
Add tilemaps with collision and without.
Automatically let the navigation agent detect the collision with the tiles where collision is set.
On click the character will walk around all walls/tiles with collision.
I'm not sure if the current navigation region overwrites all the tile settings (including navigation).
At the end it would be great to allow explicitly everything for navigation, except collision tiles (without setting navigation AND collision for all tiles)
Any idea what is the best way to solve this?