Godot Version
4.3
Question
Is there a way to get the currently traversed navigation layer bitmask value from a NavigationAgent3D ?
In my case i have 2 NavigationMesh :
- first on Layer 1 for my floor,
- second on Layer 2 for my vents.
And i need to know if my enemy AI is traveling in Layer 1 or 2 to adapt some behaviour.
Navigation layer bitmask apears to be the last parameter when pathfinding is computed :
NavigationServer3D.map_get_path(map: RID, origin: Vector3, destination: Vector3, optimize: bool, navigation_layers: int = 1).
But it does not seems to be passed to the NavigationAgent, maybe someone know a way to get that bitmask value while agent is traveling ? I tryed to do my own requests to the NavigationServer but without success
Could be workaround easyly in my case with some Area3D and boolean switch, but it would be nice and clean to get an easy acces to thoses bitmask value directly from the NavigationAgent.