I checked that it was actually hitting the correct mesh but physMaterial was nullptr. However i managed to get what i want with changing how i get material itself.
This is how i managet to do it:
UPrimitiveComponent* hitComponent = hitResult.Component.Get();
UPhysicalMaterial* physMaterial = hitComponent->BodyInstance.GetSimplePhysicalMaterial();
1 Like