hey @samevision sorry for late
here is code for detect close point an the wall ( inside is allowed )
https://www.babylonjs-playground.com/#Z2TXI0#2 ( inside and outside is allowed )
performance test : 400 check wall in same time
you can detect a wall direction too
https://www.babylonjs-playground.com/#Z2TXI0#5 ( inside and outside is allowed )
under constriction