UKismetSystemLibrary::BoxTraceSingleForObjects

Sweeps a box along the given line and returns the first hit encountered.