Stop walking into walls?

Try using these nodes in this fashion

348950-screenshot-2021-09-18-112615.png