Hello guys !
What is the best way to get the material pointer of a geometry surface hit by a raycast ? The procedure is unclear for me at the moment.
I would like to do such thing for example to know a surface type (written as a property in material) and then for example play different footsteps sound according to that.
Thanks