Making the sample character in Blender
A short recipe for a character that Despair Physics maps, builds and animates with no manual steps: one mesh, a 26-bone deform skeleton and four animations. Everything in it is yours, so it can ship in the package with no third-party notice.
The bone names below follow the Unreal mannequin scheme with Blender’s own .L / .R suffixes.
RigMapper reads thigh.L as thigh_l, so the rig maps by name, with no Humanoid avatar.
1. Skeleton
Model in metres, 1.8 m tall (any height from 1.1 m to 4.5 m works, 0.6× to 2.5× the reference; 1.7 to 1.9 m is the tested
sweet spot). The character stands in a T-pose facing −Y (it looks at you in Front view,
numpad 1), feet on the origin, arms straight out along ±X with palms down, legs straight down.
Its left is +X, so .L bones sit on +X.
| Bone | Parent | Head (x, y, z) | Tail (x, y, z) |
|---|---|---|---|
pelvis | (none) | 0, 0, 1.00 | 0, 0, 1.08 |
spine_01 | pelvis | 0, 0, 1.08 | 0, 0, 1.20 |
spine_02 | spine_01 | 0, 0, 1.20 | 0, 0, 1.34 |
spine_03 | spine_02 | 0, 0, 1.34 | 0, 0, 1.50 |
neck_01 | spine_03 | 0, 0, 1.50 | 0, 0, 1.60 |
head | neck_01 | 0, 0, 1.60 | 0, 0, 1.80 (top of the skull) |
clavicle.L | spine_03 | 0.02, 0, 1.46 | 0.17, 0, 1.46 |
upperarm.L | clavicle.L | 0.17, 0, 1.46 | 0.45, 0, 1.46 |
lowerarm.L | upperarm.L | 0.45, 0, 1.46 | 0.71, 0.01, 1.46 |
hand.L | lowerarm.L | 0.71, 0.01, 1.46 | 0.80, 0.01, 1.46 |
middle_01.L | hand.L | 0.80, 0.01, 1.46 | 0.84, 0.01, 1.46 |
middle_02.L | middle_01.L | 0.84, 0.01, 1.46 | 0.87, 0.01, 1.46 |
thigh.L | pelvis | 0.09, 0, 0.95 | 0.09, −0.01, 0.52 |
calf.L | thigh.L | 0.09, −0.01, 0.52 | 0.09, 0, 0.09 |
foot.L | calf.L | 0.09, 0, 0.09 | 0.09, −0.13, 0.02 |
ball.L | foot.L | 0.09, −0.13, 0.02 | 0.09, −0.22, 0.02 |
Make the left side, then Armature > Symmetrize for the .R bones. Rules the mapper checks:
- Exactly this tree. Clavicles hang from the top spine bone, thighs from
pelvis, the neck from the top spine bone. One to six spine bones work; three is the tested layout. - Deform bones only in the export. Keep IK targets, poles and controls in a separate, non-deforming set (or don’t use them) and export with Only Deform Bones.
- No extra bones in the chains (twist or helper bones between
upperarmandlowerarm, say). If you add some, they must be children in the chain, not siblings. middle_01/02andballare optional but give the hands and feet their exact length. Other fingers are fine; they ride along unsimulated.- A slight bend at the knees (the −0.01 y above) and elbows keeps Blender’s IK bending the right way; the builder straightens limbs within 5° anyway.
- Bone rolls don’t have to match the ragdoll’s joint axes. Poses pasted between bones whose rolls
differ (Copy Pose / Paste Pose, a mirrored paste) or IK with a pole off to one side often leave
a knee bending about a tilted axis with the thigh twisted to make up for it. That plays right in
Blender, and the ragdoll retargets each arm and leg as a chain, so it plays right on the body too.
The feel tests check it (
TheAnimatedBodyPutsItsFeetAndHandsWhereTheClipDoes).
2. Mesh
- One body mesh, parented to the armature with Automatic Weights, then fix the weights so every vertex is weighted to the bone it should follow. Colliders are fitted to this mesh, bone by bone.
- Keep loose clothing, hair or props as separate objects, so they can be left out of the fit.
- Close to the bones: no thick padding or capes, or the colliders grow with them.
- Apply all transforms on the mesh and the armature (Ctrl+A > All Transforms) before animating.
3. Four animations
Make each as its own Action, named exactly as below, at 30 fps. Push each to the NLA (or keep it fake-user’d) so the exporter writes all of them.
| Action | Length | What it must be |
|---|---|---|
Idle | 2 to 4 s, looping | Standing in place, feet flat and still, knees slightly soft, a little breathing or weight shift. First and last frames identical. |
Walk | One cycle (two steps), about 1 s, looping | A normal walk that moves forward: pelvis travels about 2 m along −Y over the cycle, feet planted on the ground without sliding. Last frame = first frame moved forward by the stride. Not in place. |
GetUpBack | 2.5 to 3.5 s | Starts lying flat on the back: body straight, arms at the sides or slightly out, pelvis about 0.11 m above the floor. Sits up, tucks the feet in, stands, and ends in Idle’s first pose. |
GetUpFront | 2.5 to 3.5 s | Starts lying flat on the front, face down, the same way. Pushes up to all fours, steps a foot under, stands, ends in Idle’s first pose. |
For the get-ups, move the pelvis bone itself: they carry no root motion. Lying direction doesn’t
matter; the first frame is lined up with wherever the body lies, and the body blends into it over
half a second, so a straight, relaxed first frame works best.
4. Export (File > Export > FBX)
| Setting | Value |
|---|---|
| Limit to | Selected Objects (the armature and the body mesh) |
| Object Types | Armature, Mesh |
| Scale | 1.00, Apply Scalings: FBX All |
| Forward / Up | −Z Forward, Y Up |
| Apply Unit, Use Space Transform | on |
| Apply Transform | on |
| Armature | Primary Bone Axis Y, Secondary X; Only Deform Bones on; Add Leaf Bones on |
| Bake Animation | on: Key All Bones, NLA Strips or All Actions, Force Start/End Keying; Simplify 0 |
Leaf bones give head and ball an end point, which sizes the head and feet exactly.
Export from the rest pose. The exporter writes the armature’s first action in the action editor as the default pose, and that pose is what the ragdoll is built in. Before exporting, ensure that the true T-Posing empty action is the first one on the action list.
5. Import into Unity
Select the FBX in the Project window:
- Model: Scale Factor 1, Convert Units on, Bake Axis Conversion on.
- Rig: Animation Type Generic, Optimize Game Objects off, and Root node:
pelvis. That is what gives the Walk clip its root motion. Clearing it makes the character stand in place, so the walk’s travel needs it set. The Root node field only appears once Avatar Definition is Create From This Model. (Leave Root Motion Node on the Animation tab’s Motion foldout alone.) - Animation: one clip per action, set the loop settings for each:
| Clip | Loop Time | Loop Pose |
|---|---|---|
| Idle, Walk | on | on |
| GetUpBack, GetUpFront | off | off |
Loop Time must be on for Idle and Walk. With it off, the clip plays once and stops, so a walk stops after its first cycle. Loop Pose (only available with Loop Time on) blends the last frame back into the first, so the loop has no jump in case start and end frames of your looped animation do not match.
- Root Transform options (Rotation, Position Y, Position XZ): leave them at their defaults, with Bake Into Pose
off. The Walk clip keeps its root motion because its XZ travel is not baked, and the get-ups move the
pelvisbone themselves. The exception: if a clip keys the root’s rotation (the clip itself turns), tick Root Transform Rotation > Bake Into Pose on that clip. This recipe’s clips don’t. Don’t turn on Apply Root Motion: the package does that on its own animation skeleton.
Not Humanoid: the animation skeleton plays Generic clips by bone path.
6. Set it up and check it
- Select the FBX and open Tools > Despair Physics > Setup Wizard. Found by must say Unreal names, with no problems listed. Animation model fills in with the FBX.
- Turn on Add locomotion and assign Idle, Walk, GetUpBack (Get up from back) and GetUpFront (Get up from front).
- Preview: height about 1.80 m, mass about 94 kg, every part fitted to the mesh. Then
Create Ragdoll Prefab: it is saved next to the FBX as
<name> Ragdoll.prefab. - Drop it in a scene with a floor, press Play: it idles and stands. Open Tools > Despair Physics > Validator: no errors.