Creating springy force in HingeJoint

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By andersmmg

I have a HingeJoint for a door, which works well. I am trying to create a springy force to pull the door back to it’s original rotation state. Like a real door with a spring loaded hinge. How should I go about this? I’ve been unable to figure out how to calculate the rotational force needed