Line trace: how to get hit material?


you need to use "trace complex "