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 to a circle. Read an article about a fixed joint: https://medium.com/@suleimanabdullah/working-with-fixed-joint-b377ab3619f6.

A Hinge Joint is a component that allows an object to have a pivot point at which it can swivel based on the connected bodies' positions.

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

Press enter or click to view image in full size

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

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

Press enter or click to view image in full size
Press enter or click to view image in full size

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

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Now let us play Unity Editor.

Press enter or click to view image in full size

See you at the next one.

--

--

Suleiman Abdullah
Suleiman Abdullah

Written by Suleiman Abdullah

My name is Suleiman Abdullah. Im learning game development and share what I learn by writing articles. :https://ko-fi.com/suleimanabdullah