How to get the surface type, and physical material with a projectile in C++?(No Linetraces)

I did a you said I just need to apply physical materials to all forms of collision within the mesh and textures in order to prevent a collision returning null.