Dealing damage with box collusion

Thank you very much for your help.