Push stuff

How would I go about if I want to create a push-script?

Example: I have a rigidbodydoor and a hingejoint - I want to walk up to the door and push it open with my FPS controller.

I’m not asking anyone to write a script, just small ideas how I can do it myself. I’ve checked the Unity3D documentation on Addforce and I dont really understand it completly.

I’ve also tried opening the door with animations and I failed there so I decided it’s probably easier doing it with a push-script.

Solved it by adding

Hit.rigidbody.Addforce(hit.moveDirection); if anyone is interesed.