I have seen various other posts about knockback but all of them near enough was about the enemy being knocked back but I want the player to be knocked back depending on which side of the obstacle he is hitting it from.
like as if the player is hitting a bomb if he is on the left to get knocked back to the left and same for the right, top and bottom.
Any ideas?