Unity Joints - nomrand/__basics GitHub Wiki

Hinge Joint

Prepare 2 Objects which has RigidBody Component. Object1 for joint center(pivot), and Object2 for joint client(move after Object1).

  1. Attatch [Hinge Joint] to Object2
  2. Set Ojbect1 to [Connected Body] (joint pivot object)
  3. Adjust the [Anchor] xyz (=distance from Object2), and [Connected Anchor] xyz (=distance from Object1)
  4. (Option) Set rotate angle limit. Check On [Use Limit], and set [Limits Min/Max].

images/unity/hinge_joint.png

play as

images/unity/hinge_joint.gif

Spring Joint

Prepare 2 Objects which has RigidBody Component. Object1 for spring base(pivot), and Object2 for spring client(move after object1).

  1. Attatch [Spring Joint] to Object2
  2. Set Ojbect1 to [Connected Body] (joint pivot object)
  3. Adjust the [Anchor] xyz (=distance from Object2), and [Connected Anchor] xyz (=distance from Object1)
  4. (Option) Set spring force([Spring]) or other...

play as

images/unity/spring_joint.gif