Characters and ragdolls

The character editor writes bodies and joints into a Physics Asset. Generate Character builds a Physics Asset meant to ragdoll, not only to block traces; per-bone painting and fitting refine it; bone rules and Skeleton Profiles describe rigs whose bone names do not explain themselves.

The character editor after Generate Character: the Skeleton Tree lists each bone with its joint type (Pelvis, Spine, Clavicle, Shoulder, Elbow, Wrist, Finger), twist bones are greyed out, and the character is covered by 22 generated bodies; the status line reads Generated 22 collision elements on 22 bodies.
The Skeleton Tree after Generate Character. Each bone shows its joint type on the right; twist bones are greyed out because their skin counts for the joint above them. This character got 22 bodies.

Open the character editor

  1. In the Content Browser, right-click a Skeletal Mesh and choose Edit Collision in Collider Painter.
  2. Choose a compatible existing Target Physics Asset, or use Create New Physics Asset. If you clear the target, a new asset is created only after generation succeeds.

From the Level Editor’s Collider Painter mode, the Skeletal palette button (tooltip “Generate Character”) generates bodies for the selected skeletal mesh; hold Alt while clicking to choose the Physics Asset.

Generate Character

Press Generate Character (Ctrl+Shift+Enter). The source is copied on the game thread and fitted on background workers, with progress and Cancel (Escape). Cancelling applies nothing, and if the source changes during the job its result is discarded.

  • Torso and head bones get convex bodies, limbs get capsules (Torso And Head Type and Limb Type change this).
  • Bodies and joints that already exist are kept. Existing joints are never changed; bodies keep their mass and damping.
  • Bodies that overlap in the reference pose (bulky armour, for example) do not collide with each other, because such a pair can never come to rest apart. Bodies that are apart keep colliding, so a limb still stops at the torso.
  • Regenerating with larger minimum-region thresholds retires the omitted, unlocked automatic child shapes and keeps manual shapes, body records and your joints.

Body Set

Body SetWhich bones get a body
Major Joints (default)For a character whose arms and legs are recognised: pelvis, spine, neck, head, clavicles, upper and lower arms, hands, thighs, calves and feet. Fingers, toes, face joints and extras such as a scarf or a pouch get no body; their skin counts for the body above them.
All BonesEvery weighted bone that passes Minimum Bone Size and Minimum Dominant Triangles. A skeleton that is not recognised always generates this way.

A bone gets its own body only where it is the strongest skin influence on some triangles. On the UE5 Manny rig, for example, the neck is skinned mostly to the head, so neck_01 gets no body and the head joins spine_04; add a neck body by hand in the Physics Asset editor if you want one, and regeneration keeps it.

Limit Joints By Type

On by default. Each new joint is limited by what its bone is. Angles are degrees and are starting values: tune them in the Physics Asset Editor as you would any ragdoll.

BoneJointSwing 1Swing 2Twist
Calf, shinHinge, bends backward only0 to 140lockedlocked
ForearmHinge, bends forward only0 to 145lockedlocked
ThighBall603025
Upper armBall806040
SpineCone151515
NeckCone202020
HeadCone303030
ClavicleCone1515locked
HandCone502515
FootCone301510
Anything elseCone454545

Joint frames are built from the reference pose and the character’s left and right limbs, not from bone axes, so a hinge opens the right way on any rig. With the option off, every new joint gets 45 degrees on every axis.

Angular Damping

Every new body gets Angular Damping 0.5 by default. Unreal’s own default is 0, which lets a ragdoll’s limbs swing for a long time; raise it for a heavier, calmer fall, or set −1 to leave Unreal’s default.

Bones recognised by name

Bone names are read in the styles of the Unreal mannequin (thigh_l, lowerarm_r), Mixamo (LeftUpLeg, RightForeArm), Unity humanoid (LeftLowerLeg) and Rigify (shin.L, upper_arm.R), with any prefix. A skeleton counts as recognised when the names give at least four of its hip, knee, shoulder and elbow joints.

Twist, roll and corrective bones

Skin weight on twist, limb-roll and corrective bones (recognised by name) counts for the joint above them, so Manny gets bodies on thigh and upperarm rather than on their twist bones, and those deform-only bones are not listed as paintable.

If your rig gives real joints such names, turn on Separate Twist Bones in Generation Settings: every bone then keeps its own skin and can get a body. The Skeleton Tree reloads (unbaked paint is discarded; undo restores it). On Manny this is the wrong choice: thigh_l and upperarm_l own no skin of their own, so they get no body. An asset whose collision sits on such a bone opens with the option already on.

Generation Settings

SettingDefaultMeaning
LOD0Imported LOD the bone regions are read from. Changing it reloads the Skeleton Tree.
Minimum Dominant Triangles12Bones that own fewer triangles are folded into their nearest weighted parent.
Minimum Bone Size1 cmBones smaller than this are folded into their parent.
Separate Twist BonesOffSee above.
Body SetMajor JointsSee above.
Bone RulesnoneRules for this character. See below.
Skeleton ProfilenoneA saved set of rules for a rig. See below.
Limb TypeCapsuleShape for limb bones.
Torso And Head TypeConvexShape for the pelvis, spine, chest, head and root.
Create ConstraintsOnCreate a joint between each new body and the body above it.
Limit Joints By TypeOnSee the table above.
Angular Damping0.5For each new body; −1 leaves Unreal’s default.
Assign To MeshOnAssign the Physics Asset to the Skeletal Mesh after generation.
FitFit options for every generated body.

Bone rules

For extra or missing limbs, tentacles, wings or your own naming, say what the bones are with bone rules. Rules are read in order and the first match decides a bone; a bone no rule matches is read from its name.

FieldDefaultMeaning
PatternA bone name with * for any run of characters and ? for one, case ignored: leg_*_lower, *Tentacle*, calf_l.
RoleOtherWhat the bone is. It brings the limits from the table above and tells left from right for the hinge direction.
Gets BodyOnOff gives the bone no body, whatever the Body Set; its skin counts for the body above it.
Custom LimitsOffUse the limits below instead of the role’s.
KindConeCone, Hinge, Fixed or Slider.
Swing 1, Swing 2, Twist45°For Cone and Slider. 0 locks an axis.
Hinge Range140°For Hinge: how far it opens from the reference pose toward Bend Direction (1 to 179).
Hinge Back0°For Hinge: how far it may also go the other way. 10 lets a knee hyperextend by 10 degrees.
Bend DirectionAutoWhich way the hinge opens: Auto (backward for a knee, forward otherwise), Forward, Backward, Up, Down, Outward or Inward. Directions are the character’s own, read from its left and right limbs.
Slide Distance10 cmFor Slider: how far the joint may move along the bone, each way.
Mass Scale1Multiplies the mass Unreal works out from the new body’s shapes.
Angular Damping−1For the bone’s new body. Below 0 uses the character’s Angular Damping.

Joint kinds

Cone
Swings within Swing 1 and Swing 2 and twists within Twist.
Hinge
Turns about one axis only, from the reference pose to Hinge Range toward Bend Direction, and Hinge Back the other way.
Slider
A cone that can also slide along the bone by Slide Distance: a tentacle, a tail segment, a piston.
Fixed
The body does not move against the one above it.

Roles are Pelvis, Spine, Neck, Head, Clavicle, Shoulder (upper arm, ball joint), Elbow (forearm, hinge), Wrist (hand), Hip (thigh, ball joint), Knee (calf or shin, hinge), Ankle (foot), Toe, Finger, Face and Other.

Set a bone’s joint type from the Skeleton Tree

The Skeleton Tree shows each bone’s joint type beside its name. The quickest way to make a rule for one bone: right-click it, open Joint Type and pick what it is. That writes a rule for exactly that bone into Bone Rules, where its limits can be edited.

  • Detect From Name removes the bone’s rule, so it is read from its name again.
  • A role: Pelvis, Spine, Neck, Head, Clavicle, Shoulder, Elbow, Wrist, Hip, Knee, Ankle, Toe or Finger.
  • Hinge That Opens > Forward, Backward, Up, Down, Outward or Inward: a hinge from the reference pose to 140 degrees in that direction.
  • Cone (45 Degrees), Sliding (Tentacle) (a cone that can also slide 10 cm along the bone) or Fixed.
  • No Body: the bone gets no body; its skin counts for the body above it.

Things worn on a joint (pads, armour, holsters, pouches, straps) are not read as joints.

Skeleton Profiles

Rules can live in three places, read in this order:

  1. Generation Settings > Bone Rules: for the character that is open.
  2. Generation Settings > Skeleton Profile: a CP Skeleton Profile data asset holding the rules for a rig. Create one in the Content Browser: Add > Miscellaneous > Data Asset > CP Skeleton Profile.
  3. Default Skeleton Profile under Characters in the Collider Painter settings: used by every Generate Character in the project, including GenerateCharacterCollision from Blueprint or Python.

To onboard a rig: make one Skeleton Profile for its naming convention, set it as the default, and every character on that rig generates the same bodies and joints.

Per-bone editing

Select a bone, then paint with the brush, triangle, connected region, material, UV island, polygroup, box or lasso interaction; Invert, Grow and Shrink change the region. Skeletal polygroups keep the dominant source bone within folded regions.

  • Fit (Enter) previews the selected bone; Bake (Ctrl+Enter) writes it.
  • Copy Fit to Mirrored Bone (Ctrl+Shift+M) copies a bone’s fit to its left or right counterpart, paired by names ending _l/_r or .L/.R, or containing Left/Right. Without a preview (straight after Generate Character) it copies the bone’s generated body.
  • Each bone row has hide (H) and lock (Ctrl+L) toggles. Clear Paint (Delete) and Reset Paint (no default key) edit the bone’s painted region.
  • Replace All Collision removes shapes the plugin did not create on the bodies it bakes.

From Blueprint or Python

UCPSkeletalCollisionLibrary has CreatePhysicsAsset (an unsaved asset; an existing object is never overwritten), GenerateCharacterCollision, FitBoneCollision and GetPhysicsAssetJoints, which returns each joint’s bones, role and limits (a limit of 0 is locked, −1 is free) and slide distance. FCPCharacterCollisionSettings.BoneRules takes the same rules as the editor, followed by the project’s default Skeleton Profile.

Applies to Collider Painter 1.0.0. Report a problem with this page.

Esc

Type to search the documentation.

↑ ↓ moveEnter openEsc close