UWorld::LineTraceSingleByObjectType

Trace a ray against the world using object types and return the first blocking hit