📗
FPS Animation Framework Legacy
  • 👋Welcome!
  • ⭐Introduction
  • Tutorial
    • 🌟Getting started
      • 🏃‍♂️Character setup
      • 📷Camera setup
      • 🔶Layers setup
      • 🔷Controller setup
      • 🔫Weapon setup
    • 💻Integration
      • 🏃‍♂️Character
      • 🔫Weapon
      • 🔸Layers and animator
    • 🔥Animation Workflow
      • 🦿IK Rig
      • 🔧Character Animation
      • 🔧Weapon Animation
    • ❗Troubleshooting
      • ❔Issue with IK, Left Hand, ADS
      • ❔Broken Character Pose
      • ❔Spinning Character
      • ❔Left Hand IK Always Active
      • ❔Left Hand IK Error
      • ❔Transform NaN Error
  • Fundamentals
    • 🦾Animation System
      • 🔹Playables Sub-System
      • 🔹Curve-blending
      • 🔸AnimSequence
      • 🔸Weapon Bone
      • 🔸IK Animation System
      • 🔸Weapon Anim Asset
    • 🔶Animation Layers
      • Ads Layer
      • Left Hand IK Layer
      • Right Hand IK Layer
      • Locomotion Layer
      • Look Layer
      • Recoil Layer
      • Sway Layer
      • Leg IK
      • Weapon Collision
      • Slot Layer
      • Pose Blending
  • Tools
    • 🟢Validator Tool
Powered by GitBook
On this page
  • Basics
  • Settings
  1. Fundamentals
  2. Animation Layers

Sway Layer

PreviousRecoil LayerNextLeg IK

Last updated 1 year ago

Basics

This layer applies procedural aiming and movement sway in runtime.

public void SetFreeAimEnable(bool enable)

Settings

You can find settings for this layer in your Weapon Anim Asset:

Used for the aiming weapon sway. Let's break down every property:

  • Rot/Loc - spring settings for each rotation and translation axis.

    • Stiffness - how much should this oscillate around the target.

    • Damping - how fast should it go to zero.

    • Speed - interpolation speed.

    • Mass - mass of the spring.

    • Max Value - clamp value for this spring.

  • Scale - multipliers for each axis.

Used for free or dead-zone aiming:

  • Scalar - scales the value.

  • Max Value - maximum allowed dead-zone rotation.

  • Speed - interpolation speed.

This setting controls the movement weapon sway:

  • Max Move Loc/Rot Sway - defines maximum allowed movement sway.

  • Move Loc/Rot Sway - similar to spring data.

  • Loc/Rot Speed - interpolation speed.

🔶