🔶Procedural Animation Setup

This page explains how procedural features work in FPS add-on.

Overview

Procedural Animation Settings is a data asset created after the setup:

Animation Modifiers.

It has a "PA_" prefix, which stands for procedural animation:

This asset contains all procedural animation features that will be used for this weapon. It's possible to reorder, remove and add new modifiers. To find out more about procedural animation and modifiers, see:

🔸Procedural Animationchevron-right

FPS Animation Modifiers

The order of modifiers plays an important role — it defines how procedural features will be created and updated at runtime.

The general structure of Procedural Animation Settings can be split into 3 parts:

  1. Animate IK bones.

  2. Apply modifiers (e.g., recoil, sway, ads, etc.).

  3. Apply IK to animate character arms and legs, using IK bones as targets.

This setup preserves the original animation pose (e.g., reload animation), and lets modify that pose with procedural features.

Animating IK Bones

Copy Bones.

FPS Copy Bones positions the weapon bone and hands IK targets.

Copy Right and Left Foot IK copy position and rotation from right and left foot bones to the respective IK targets for feet.

Attach Left Hand is used to apply grip attachments, so the hand is correctly positioned relative to weapon.

Applying Procedural Features

Offsets

All theses modifiers serve one purpose - position the weapon and hands.

  • FP Offsets positions weapon and hands in first-person view.

  • TP Offset positions weapon and hands in third-person view.

  • TP Rest Offset is applied when the player is in third-person and not aiming.

circle-info

Note: All this modifiers are based on FPS Copy Bones.

It's possible to control the influence of each modifier with Weight Overrides:

Weight Overrides.

This functionality lets activate any animation modifier when needed. In the FPS Addon Demo, it's used to apply different offsets depending on the aiming state and active perspective.

To find out more about Weight Overrides, see: Weight Overrides.

FPS Features

  • Ads Modifier is used to align sights with the camera.

  • Sway Modifier applies aiming and movement sway, as well as additive animations (idle and movement).

  • Procedural Recoil applies firing animations.

  • IK Motion applies dynamic additive animations, which are used for aiming, draw and holster motions.

circle-check

General Modifiers

IK Modifiers

The last fetures in almost any Procedural Animation Settings asset is either a pair of Two Bone IK, or Full Body IK modifiers.

Last updated