Physical Material character interaction

line trace to it>get physical material>if result=physical material you want>do the thing