Sitemap
Press enter or click to view image in full size

Unity Physics: Creating and Customizing Ragdolls

3 min readAug 30, 2024

--

Getting started using ragdoll physics is easy and painless…except for the test dummies being dropped for this article.

For the Ragdoll system to work, your model needs to have a working rig.

Press enter or click to view image in full size

Add a ragdoll to the model under 3D Objects > Ragdoll.

Press enter or click to view image in full size

The ragdoll wizard will open with empty assignment boxes.

Assign each rig object from your model to the wizard.

Make sure to match the correct names to the appropriate boxes.

Press enter or click to view image in full size

After all slots have been assigned, press the create button.

Colliders and Rigidbodies will be added to the rig objects.

Press enter or click to view image in full size

You can view and adjust each collider as desired.

Press enter or click to view image in full size

The ragdoll is already working and ready to go. Ouch!

Press enter or click to view image in full size

The default head collider is off position to the model.

Press enter or click to view image in full size

Let’s tighten that up.

In order to add more body parts to the ragdoll, first add a collider to the rig object. Here is the left foot rig with a capsule collider.

Press enter or click to view image in full size

Add a Character Joint component to the object, which will place a rigidbody on it as well, if there isn’t one already. The Connected Body assignment is looking for the closest rigidbody in the rig, which is the left leg in this case.

Press enter or click to view image in full size

The default angular limits look ok for this example.

The hands get the same treatment.

Press enter or click to view image in full size

Here is the final ragdoll setup.

Press enter or click to view image in full size

That looks a bit more natural compared to the first one.

Press enter or click to view image in full size

Watch out for falling grunts on your way and thanks for reading!

Press enter or click to view image in full size

--

--

Jared Amlin
Jared Amlin

Written by Jared Amlin

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.

Responses (1)