2d Melee knockback based on relative location attacker to the attacked

I forgot to say, this is in 2d! So I have melee capsule that tracks overlapping actors to determine if something is being hit.