You could replace floor mesh with a blueprint that has just mesh in it. Then check whether object you hit is of the “floor” class or not.