There has to be an easy way to do this. Back when I used gamemaker (remaking the same game with UE4), using GML its a simple as
if (ball.x == box.y) destroy.instance
or something like that. I just want to know how to check whether the ball has hit the box, and if it has, then destroy both the box and the ball.