The hinge joint groups together two rigidbodies constraining them to move like they are connected by a hinge.
Unity door hinge joint.
For a summary of the 2d joints see joints 2d documentation.
A single hinge joint should be applied to a gameobject the fundamental object in unity scenes which can represent characters props scenery cameras waypoints and more.
This is a quick tutorial that shows one way to use hinge joints and letting them move around.
It is perfect for doors but can also be used to model chains pendulums etc.
A gameobject s functionality is defined by the components attached to it.
2d joints have 2d at the end of the name for example hinge joint 2d.
Hinge joint は 2 つの リジッドボディ をグループ化し 互いにヒンジで連結されているかのように制約します ドアに最適ですが 鎖や振り子などをモデル化するのにも使用できます.