Sitemap

Working with Hinge Joint

3 min readMay 17, 2025

Objective: Working with the Hinge Joint.

Before doing anything, know that my cube has a fixed joint connected with a circle. Read an article about a fixed joint, a link is here https://medium.com/@suleimanabdullah/working-with-fixed-joint-b377ab3619f6.

A Hinge Joint is a component that allows the object to have a pivot point where it can swivel around based on the connected bodies' position.

First, you need to select which point you need to swivel around.

To create a Hinge joint, select the circle object and add a Hinge Joint. By adding a Hinge Joint, it will add a RigidBodyautomatically.

Now select the other body and add a rigid body, but make sure this object is kinematic so it won't fall. Setting is kinematic is not necessary, but for me, I want this body to hold the circle while swinging.

Select the Circle, then drag and drop the Rigidbody of the cylindrical bar to the connected body of the Hinge joint option.

Now I will adjust some settings to make the pivoting center my circle by selecting Edit angular Limit from Hinge Joint, I will adjust the anchor option on “Circle < Inspector < Hinge Joint, Anchor on y-axis.

If we leave this option like this, it will swing 360 degrees to adjust the limit. Click the check box Use Limit, then move the handle to define the angle it can switch, but make sure Edit Angular Limit is highlighted.

Now let us play Unity Editor.

See you in the next one.

--

--

Suleiman Abdullah
Suleiman Abdullah

Written by Suleiman Abdullah

Self taught Unity Developer, who is passion about making games ,and he loves Math For Game Development

No responses yet