Prevent nodes from being on certain objects

I have a grid, which sometimes get places on an unreachable point for the player (Trees, Building roofts, etc.) Is there any way to prevent nodes from being created if the thick raycast hit a specific object?

Hi

Yes, you can use the Collision and Height testing masks to exclude or include objects in height testing and marking objects as obstacles.