Skip to content

Animation pipeline

Each pawn runs one character Anim Blueprint. It is the Game Animation Sample's motion matching Anim Blueprint with GASPALS layering added: overlay poses blended per body part on top of locomotion, an aim offset, procedural IK and cover lowering.

Anim Blueprint Used by
/GASPALS/Blueprints/SandboxCharacter_Mover_ABP SandboxCharacter_Mover
/GASPALS/Blueprints/SandboxCharacter_CMC_ABP SandboxCharacter_CMC

Both are animated on the UEFN mannequin skeleton. Other characters (Manny, Quinn, the MetaHuman Kellan, or your own) copy or retarget that pose; see Characters and visual overrides.

The pose, step by step

flowchart TD
    MM[Locomotion<br>motion matching or hybrid] --> LB
    OP[Overlay pose layer<br>ALI_OverlayPose] --> LB
    OB[Overlay body layer<br>ALI_OverlayBody] --> LB
    LB[ABP_LayerBlending<br>per-bone blends by curves] --> AO[Additive leans<br>and aim offset]
    AO --> GL[Game layers<br>ALI_GameLayer]
    GL --> Slot[DefaultSlot<br>montages: traversal, interactions, get-up]
    Slot --> Root[Offset root bone]
    Root --> Proc[Procedural layers<br>foot placement, leg IK, hand IK, full body IK]
    Proc --> Hist[Pose history<br>for motion matching]
    Hist --> Cover[CR_Humanoid_CoverLower<br>cover lowering]
    Cover --> Out((Output pose))
  1. Locomotion. Two locomotion setups exist, selected per pawn by a console variable:

    • Full motion matching: the motion matching node picks frames from the pose search databases to match the character's trajectory.
    • State machine / blend stack hybrid: a state machine (idle, locomotion and in-air loops, transitions, idle breaks, and the slide) whose states pick animations with choosers and play them through a blend stack.

    DDCvar.LocomotionSetupMover (default 1, hybrid) and DDCvar.LocomotionSetupCMC (default 0, full motion matching) choose the setup. The result is cached as the locomotion pose. 2. Overlays. Two linked anim layers produce the overlay poses: ALI_OverlayPose (what the hands hold: rifle, torch, box...) and ALI_OverlayBody (the body style: default, masculine, feminine). The Blueprints that implement them are linked at runtime by the overlay and equipment systems. An Inertialization node after each layer smooths the switch when a new layer is linked. 3. Layer blending. ABP_LayerBlending (a linked anim graph) blends the overlays onto the locomotion pose bone chain by bone chain: legs, pelvis, spine, head, each arm and hand, in local or mesh space, as additive or override. The weights come from curves on the overlay poses, so each overlay pose decides how much of the body it takes over (see below). 4. Leans and aim offset. Additive leans from the lateral acceleration, then the aim offset layer turns the spine toward the aim direction. 5. Game layers. Two empty layers, GameUpperBody and GameAdditive, that your game can fill (see Game layers). Until it does they pass the pose through. 6. Montages. The DefaultSlot plays montages: traversal, takedowns and shoves, ragdoll get-ups. 7. Root and procedural. The offset root bone keeps the feet planted while the capsule turns. It lets the offset go while a montage plays and while ragdolling (the capsule turns with the body then, and a kept offset would rotate the get-up). The procedural layers run foot placement and leg IK, the hand IK Control Rig (CR_Humanoid_HandIK), and on the Mover pawn a full-body IK pass for character interactions. 8. Pose history records the final pose for motion matching's next search. 9. Cover lowering. CR_Humanoid_CoverLower lowers the pelvis in cover. It runs last so it acts on the final pose.

The two Anim Blueprints differ in a few steps:

Step Mover Anim Blueprint CMC Anim Blueprint
After layer blending Procedural_PreLayering: ground alignment while sliding none
Leans AdditiveLeans layer A lean additive node in the AnimGraph
Before the montage slot A Ragdoll state machine: the ragdoll poses while ragdolling, then a blend out from the ragdoll pose The same
After the montage slot Dead Blending The same
Procedural Procedural_Feet (the CR_Biped_FootPlacement Control Rig, then hand IK) and Procedural_FullBody (full-body IK for takedowns and shoves) One Procedural layer: the Foot Placement node, leg IK, then hand IK

Layering curves

Overlay poses carry curves that say how strongly each body part follows the overlay. The pose Anim Blueprints write them from a curve map on each pose (see Overlay system), and ABP_LayerBlending reads them:

Curve Effect
layering_legs, layering_pelvis How much the overlay drives the legs and pelvis. 0 keeps the locomotion legs.
layering_spine, layering_spine_add Spine override and additive weight.
layering_head, layering_head_add Head override and additive weight.
layering_arm_l, layering_arm_r Arm weight.
layering_arm_l_add, layering_arm_r_add Additive arm weight (arm swing kept on top).
layering_arm_l_ls, layering_arm_r_ls Local-space arm weight. Below 1 the arm blends in mesh space, so it keeps its orientation while the spine moves.
layering_hand_l, layering_hand_r Hand (finger) weight.
enable_handik_l, enable_handik_r Hand IK weight toward the item's IK sockets.
enable_cr_aimoffset, disable_cr_aimoffset_pitch, disable_cr_aimoffset_yaw Aim offset Control Rig on or off, and per axis.

A rifle ready pose, for example, takes the legs, pelvis, spine, arms and hands (layering_* at 1), keeps the head free, and turns the left hand IK on so the support hand stays on the handguard.

Aim offset and weapon aim

When the character aims, the upper body follows the aim direction in two steps:

  1. The aim rotation drives the spine aim offset. For the player you control it is the live control rotation, on both pawns, so the weapon turns in the same frame as the camera. For remote copies it is smoothed in the character Anim Blueprint with a critically damped spring.
  2. In the overlay Anim Blueprint, the aim pitch is mapped to 0..1 and blends the weapon's aim sweep animations, which raise and lower the arms.

The camera has no rotation smoothing of its own, so any body lag shows against the crosshair: when turning slowly, a smoothed weapon trails each small mouse step and seems to step into place. That is why the player you control has no smoothing by default. Remote copies keep it, because their aim arrives in network steps.

Setting Asset (category GASPALS > Anim > Aim / Overlay > Aim) Default
Aim Smoothing Time Local Both character Anim Blueprints 0 (none)
Aim Smoothing Time Remote Both character Anim Blueprints 0.2 s
Aim Sweep Interp Speed Local ABP_OverlayPose_Base (the ABP_Overlay_<Item> children inherit it) 0 (none)
Aim Sweep Interp Speed Remote The same 10

0 means no smoothing: the spring and the sweep interpolation follow the aim at once. Raise the local values only if you want a heavier weapon feel; the weapon then lags the crosshair while turning.

New overlay children

Variables added to ABP_OverlayPose_Base do not reach the class defaults of existing children. When you create an ABP_Overlay_<Item> by duplicating an existing one, the values come along; when you add a new setting to the base, set it on every child.

Game layers

A game built on GASPALS can plug its own upper-body or weapon graph into the character Anim Blueprints without editing them. ALI_GameLayer (in Blueprints) is an anim layer interface with two layers. Each takes the pose at that point (InPose) and returns a pose:

Layer Use
GameUpperBody A game pose, such as a weapon or upper-body graph.
GameAdditive Runs after GameUpperBody: apply additives (recoil, hit reactions) to InPose in your graph.

Both character Anim Blueprints call the two layers after the overlay layering, the leans and the aim offset, and before the montage slot, the ragdoll and the IK. So a montage (traversal, a bench, a takedown) replaces the game pose while it plays, and hand IK still moves the hands to the held item after it.

To use them:

  1. Make an Anim Blueprint for the character's skeleton that implements ALI_GameLayer (one layer or both; a layer you leave out keeps the pass-through).
  2. Call LinkAnimClassLayers with your class on the pawn's third-person mesh (SkeletalMesh on the Mover pawn, CharacterMesh0 on the CMC pawn). UnlinkAnimClassLayers with the same class goes back to the pass-through.

The retargeted characters copy the third-person pose, so they show the game layers too; the first-person meshes run their own Anim Blueprints and have none. The overlay and equipment systems link other layers, so they leave yours alone. Never call LinkAnimClassLayers with an empty class on the third-person mesh: it resets every layer of the mesh, the game layers included. The overlay and equipment systems skip an empty class and print a warning instead.

Legs and foot placement

The overlay legs are blended in (layering_legs, layering_pelvis), so carry and ready stances such as the rifle's bent-knee stance show in the legs. Foot placement then plants the feet:

  • Mover pawn: CR_Biped_FootPlacement (Control Rig). Its leg IK measures the leg bone lengths from the posed skeleton every frame, so skeletons with scaled leg bones (the UEFN mannequin's thighs and calves carry a 1.12 scale) keep their real leg length.
  • CMC pawn: the engine's Foot Placement node, then leg IK.

On the Mover pawn the foot placement path follows the engine console variable a.AnimNode.FootPlacement.Enable (on by default: the biped Control Rig; off: plain leg IK). DDCvar.FootPlacementMode is stored by the Mover Anim Blueprint but has no effect. To keep the locomotion legs for an overlay, lower its layering_legs and layering_pelvis curves.

Threads and update order

The Anim Blueprints use the thread-safe update (BlueprintThreadSafeUpdateAnimation): the game thread only copies the pawn's state (Update_PropertiesFromCharacter, which reads Get_PropertiesForAnimation from the pawn through BPI_SandboxCharacter_Pawn), and the worker thread computes the rest. DDCVar.ThreadSafeAnimationUpdate.Enable (default on) selects the path; GASPALS' overlay Anim Blueprints read it once at start and run their update on exactly one of the two paths.

Console variables that change the animation

Variable Default Effect
DDCvar.LocomotionSetupMover 1 Mover Anim Blueprint: 0 full motion matching, 1 state machine / blend stack hybrid.
DDCvar.LocomotionSetupCMC 0 CMC Anim Blueprint: 0 full motion matching (work in progress), 1 hybrid.
DDCVar.ExperimentalStateMachine.Enable false Experimental state machine path of the CMC Anim Blueprint.
DDCvar.MMDatabaseLOD 0 Pose search databases: 0 dense, 1 sparse, 2 extreme sparse (cheaper, less precise).
DDCvar.FootPlacementMode 1 Stored by the Mover Anim Blueprint, no effect (the Mover's foot placement follows a.AnimNode.FootPlacement.Enable).
DDCvar.OffsetRootBone.TranslationRadius 0 How far the root bone may drift from the capsule.
DDCVar.ThreadSafeAnimationUpdate.Enable true Thread-safe animation update.

The full list, with what reads each one, is in Console variables.

First person

First person uses its own Anim Blueprint (ABP_FirstPerson_UEFN) on generated first-person meshes. It copies the third-person pose and adds camera, aim down sights and arm aim Control Rigs. See First person system.