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

Thank you for the help!