Making an object push the player

First i need to say that i am not a programmer, i am working in maya mostly. I need to test some traps in my project. I have a player character and i trap that is like a big hammer hanging from a tree and it has a swinging animation. I don’t know how to make it so when the hammer hits the player the player is pushed away. i tried with rigid bodies, but that didn’t work, very well, i just got the impression that the hammer is moving the player camera a bit when it hits it. Does this interaction need some hard coding or am i missing some parameters in he rigidbody/coliders?

thanks in advance

If you’re using rigid bodies for both the hammer and the player make sure the mass of both is reasonable. A hammer w/ a mass of 1 hitting a player with a mass of 100 isn’t going to do much.