Leaning Component
Leaning Component drives the classic “peek corners” mechanic by applying a lean angle to the character’s spine. It is the only component in the plugin that does not inherit from ProceduralMotionComponent, since it does not operate on the equipment pivot.
Placement: Character.
Inputs:
Max Lean Angle: The maximum angle applied to the spine.
Lean Interp Speed: The interpolation speed used to reach the target lean angle.
How it Works
The Leaning Component tracks whether the player is leaning left or right and smoothly blends the lean angle in and out over time. If both lean inputs are used, the last pressed direction takes priority (and when you release it, the component falls back to the other side if it’s still being held). It also supports multiplayer by keeping the owner responsive while staying consistent for other players.
Usage
1. Bind Inputs
In your character, call lean left and lean right when appropriate

2. Add Procedural Aim Offset (Leaning) Anim Node
Inside your animation blueprint, look for Procedural Aim Offset (Camera) and select it.
Inside the details panel, uncheck
AutoFillRotationFromCameraand checkAutoFillRotationFromLeaning

Tune the Feel
Max Lean Angle: how far the character can lean.
Lean Interp Speed: how fast the lean blends in and out.
Last updated