Other5
Creator docs

Ski stance

Legs that stay on the skis, a crouch that deepens with speed, and an upper body that still turns, aims, fires and reloads: one Animation Blueprint, built by hand in the editor. Worked example: SKIvSKI's skiers. The same recipe fits a snowboarder, a skateboarder, a rider on a sled or a horse.

Plugins used

Install them from the launcher's CREATE page. Other5Characters has the mannequin, its poses and aim offsets; Other5Combat the guns' fire and reload montages. Everything here is Blueprint: no C++. What each plugin provides

A skier at speed: knees bent, leaning forward, aiming to the side with the gun in hand
Crouched at speed, leaning forward, aiming to the side, gun in a retargeted hero's hand

What you end up with

  • Both feet on the skis, pointing along them, whatever the idle pose does with its feet.
  • The hips drop and sit back, and the spine leans forward, the faster you go.
  • The upper body turns and aims where the player looks, and plays fire and reload montages, while the gun stays on target even crouched.
  • Guns and hats that stay in the hands and on the heads of retargeted characters (Countess, Gideon).

Learn more first (Epic's docs)

How it fits together

The Anim Graph: the legs along the top, the upper body below, joined by Layered Blend per Bone, then the spine lean into the Output Pose
The Anim Graph: legs on top, upper body below, joined, then the lean

Two chains meet in a Layered Blend per Bone. The legs are placed, not played: every mannequin pose, even plain MM_Idle, stands with the feet staggered and turned out, which looks broken on skis. So the legs take the idle pose and IK moves each foot onto its ski. The upper body is played: the gun's pose through its aim offset, then two montage slots. After the blend, the spine leans with speed.

1. Make the Animation Blueprint

  1. In your plugin's folder: Add > Animation > Animation Blueprint. Skeleton SK_Mannequin, parent class AnimInstance. Name it e.g. ABP_Skier.
  2. Add these variables: SkiCrouch (Float: 0 tall, 1 full crouch), AimYaw and AimPitch (Float: where the player aims, relative to the skis), bArmsPistol and bArmsShotgun (Boolean: how to hold the gun; both false is a rifle), LeanDegrees (Float, default 24).

2. The Event Graph

On Event Blueprint Update Animation, with Try Get Pawn Owner (check it Is Valid):

  • Crouch. Speed = Vector Length of the pawn's Get Velocity. Target = Clamp(0.3 + speed / 2800, 0, 1): 30% standing still, full from about 70 km/h. Set SkiCrouch to FInterp To(SkiCrouch, target, Delta Time, 4), so it eases in.
  • Aim. Delta (Rotator) of Get Base Aim Rotation and Get Actor Rotation. AimYaw = its Yaw (clamped to -90..90). AimPitch = its Pitch + LeanDegrees × SkiCrouch × Cos (Degrees)(AimYaw) (clamped). That extra pitch keeps the gun on target when the body leans (step 6).
  • Which gun. Cast the pawn to your character, get the gun in hand and set bArmsPistol / bArmsShotgun from it.

3. The legs

In the AnimGraph, in a row, each output into the next:

  1. Play MM_Idle, then Local to Component (skeletal controls work in component space).
  2. Transform (Modify) Bone pelvis: Translation Mode Add to Existing, Space Component Space, Translation (0, 0, -5); Rotation and Scale Ignore.
  3. Another the same with Translation (0, -10, -34) (down and back: mesh +Y is forward) and SkiCrouch into its Alpha.
  4. Two Bone IK foot_l: Effector Location (13, 4, 8.5), Joint Target (15, 60, 50) (in front of the knee), both in Component Space; Allow Stretching off. Then foot_r with (-13, 4, 8.5) and (-15, 60, 50).
  5. Transform (Modify) Bone foot_l: Rotation Mode Replace Existing, Space Component Space, Rotation (85.6, 63.8, 66.8); foot_r (-86.1, -109.2, -69.4). These are MM_Idle's own foot rotations turned until the toes point straight ahead.
  6. Component to Local.

As the hips drop with SkiCrouch, the IK keeps the feet on the skis, so the knees bend more the faster you go.

4. The upper body

  1. Per kind of gun, a pose into its aim offset: MM_Pistol_Idle_ADS → AO_MM_Pistol_Idle_ADS; MM_Rifle_Idle_Hipfire → AO_MM_Rifle_Idle_Hipfire; MM_Shotgun_Idle_Hipfire → the rifle's. AimYaw into each aim offset's X, AimPitch into Y.
  2. Two Blend Poses by Bool pick one: bArmsShotgun (shotgun or rifle), then bArmsPistol (pistol or that).
  3. Slot FullBodyAdditivePreAim (fire recoil), then Slot UpperBody (reloads). A montage only shows if a Slot with its slot's name is in the graph.

5. Join them: Layered Blend per Bone

Base Pose = the legs, Blend Poses 0 = the upper body. In its Details > Layer Setup > Index [0] > Branch Filters, add spine_01 with Blend Depth 0, and turn on Mesh Space Rotation Blend (the chest faces where you aim even though the hips lean).

The one setting that breaks everything: with no branch filter, the blend adds nothing and the whole body plays the legs' idle. The upper body stays rigid, facing forward, and never aims, fires or reloads. If yours is frozen, check this first.

6. Lean with speed, keep the aim

  1. After the blend: Local to Component, three Transform (Modify) Bone for spine_01, spine_02, spine_03 (Rotation Mode Add to Existing, Space Component Space, Rotation Roll 8, Translation and Scale Ignore, Alpha = SkiCrouch), then Component to Local into the Output Pose.
Layered Blend per Bone into Local to Component and the spine_01 and spine_02 lean nodes: Rotation X 8, Ski Crouch into Alpha
The lean: Rotation X (Roll) 8 in Component Space, Ski Crouch into Alpha
  1. Why Component Space and Roll: there, X is the character's sideways axis and +Roll tips the spine forward. In Bone Space the lean follows each spine bone's own axes, which are tilted (about 23 degrees on the mannequin): the torso also tips sideways, and the gun aims low to one side and high to the other.
  2. The lean tips the arms and gun down, but only when aiming ahead: aimed to the side it just tilts the gun about its barrel. That's why step 2 adds LeanDegrees × SkiCrouch × cos(AimYaw) to the aim pitch. The animators' own aim-up poses lift the arms back, and the gun points where the player aims. (SKIvSKI measured it within a degree of standing still, from 80 degrees left to 80 degrees right.)

Compile, Save, and try SkiCrouch at 0 and 1 in the preview.

7. Use it on your character

  • Select your character's Mesh and set Anim Class to ABP_Skier.
  • Attach the gun to the weapon_r socket (Other5Combat's guns point along +Y: turn them -90 yaw).
  • Fire and reload with Play Anim Montage and Other5Combat's montages, e.g. AM_MM_Pistol_Fire, AM_MM_Pistol_Reload.

8. Guns in a retargeted character's hands

A character on its own skeleton (Add a character) is shown as its own mesh, while the mannequin animates unseen and the IK Retargeter copies its pose. Anything attached to the mannequin's sockets follows the mannequin's hand and head, and the hero's arms and neck are different lengths, so the gun floats beside the hand and a hat beside the head. In your character Blueprint, every frame from Event Tick:

  1. Find the shown mesh: Get Components by Class (Skeletal Mesh Component); the one that isn't the character's Mesh, Is Visible, and whose Get Attach Parent is the Mesh. (Cast the array items to Skeletal Mesh Component in a small helper function: in a function a cast ends the flow.) None: use the Mesh.
  2. Hand gap = shown mesh's Get Socket Location(hand_r) − the Mesh's (hand_r); head gap the same with head.
  3. Gun Set Relative Location = your grip offset + Unrotate Vector(hand gap, the Mesh's Get Socket Rotation(weapon_r)). Hat: Unrotate Vector(head gap, the Mesh's socket rotation at head).

The gun stays attached to the mannequin, so it still turns and aims with the arms; it's only moved by how far the visible hand is from the hidden one. With a mannequin skin the gap is zero.

Tuning

WhatWhereSKIvSKI
Crouch depththe second pelvis node's Translation(0, -10, -34)
How fast it gets therethe crouch target0.3 + speed / 2800
Feet apartIK Effector X13 cm
Leanspine Roll × 3, and LeanDegrees (keep equal)8 each, 24

Troubleshooting

  • Upper body frozen, no aiming, firing or reloading: the Layered Blend per Bone has no branch filter (step 5).
  • Firing or reloading doesn't show: no Slot node with the montage's slot name (step 4).
  • Crouched, the gun aims low to one side and high to the other: the lean is in Bone Space (step 6).
  • Legs stretch or knees bend backwards: Allow Stretching is on, or the Joint Target is behind the knee.
  • Gun floats beside a hero's hand: step 8.

SKIvSKI builds the same Animation Blueprint from scripts (its Docs/SkiStanceAnimation.md, Docs/Scripts/BuildAnimGraph.ps1); the numbers are the same.

Next