This document is about: QUANTUM 3
SWITCH TO

Ragdoll Wizard

Get Started

A ragdoll is a set of Character Joints applied to a humanoid character to simulate behaviors such as realistic impact collisions and character death. To create an example ragdoll, right-click in the Hierarchy and select Quantum > 3D > Ragdoll Entity.

Creating from Animator

If you have a rigged character model with an animator, you can set up the Quantum Ragdoll using the following steps:

  1. Click on your 3D model in the Project tab and set the Animation Type to Humanoid. Then click Create From This Model.
  1. In the game scene, add an Animator to your character and ensure it has an Avatar set.
  2. Add a QuantumRagdoll component to your character controller and set the animator field reference. It will automatically detect the limbs, body, and head and set up the components.

Settings

The Quantum Ragdoll component has multiple settings adjust the ragdoll to you character like the thickness and distance between the limbs. Click on the component to check it out:

Setting Description
Limb Up Direction The local axis of the limb bones that points from each joint toward the next bone, from the body toward the extremities. The limb capsules are placed along this axis, so a wrong sign places them on the opposite side of the joint.
Limb Thickness The thickness of the arms and legs. Also affects the chest and hips in the character's forward projection.
Chest Thickness The forward extent of the chest box.
Chest Forward Offset Applies an offset to the chest box in the forward direction.
Belly Thickness The thickness of the belly in the forward direction.
Belly Forward Offset Applies an offset to the hips box in the forward direction.
Joint Distance The gap between each limb collider. If it is zero, the ragdoll becomes very rigid.
Head Size The radius of the head sphere.
Head Distance The gap between the chest box and the head sphere.
Total Mass The total mass distributed across the limbs, head, chest, and hips. Avoid realistic values, as they can be too heavy for the game simulation.
General Drag The linear and angular drag of all bodies in the ragdoll.
Physics Material The physics material asset that is set on all physics body of this ragdoll.

You can enable the Edit Colliders toggle to set up these values manually using gizmos.

Bake Mode

The Quantum Ragdoll computes the size of the capsule shapes based on the distance between the limb transforms. These baked values are automatically written to the components of each limb at a certain frequency.

Update Mode Description
Immediate Updates on every editor update.
OnValidate Updates only when values in the Quantum Ragdoll component change.
Disabled Stops baking and setting the values on the limbs automatically.

You can skip baking for some parts of the ragdoll, such as the arms, legs, or head. Use Parts to Update to choose what is updated by the Quantum Ragdoll.

Asymmetric Characters

If you have a character with different limb sizes, you can change the values directly on the QuantumEntityPrototype. The Quantum Ragdoll will create a list of differences, which you can reset to default in the Quantum Ragdoll wizard.

Last updated on

Back to top