📗
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
  • Reason 1 - Animation problem
  • How to fix
  • Reason 2 - Zero keyframes
  • How to fix?
  • Reason 3 - Incorrect AimOffset
  • How to fix?
  1. Tutorial
  2. Troubleshooting

Spinning Character

PreviousBroken Character PoseNextLeft Hand IK Always Active

Last updated 1 year ago

There're 2 main resons why character could be spinning.

Reason 1 - Animation problem

It's possible that the animation you use is incompatible with your character (e.g. a Humanoid animation on a Generic character).

How to fix

Make sure that the type of your animation and the avatar are the same.

You can find the rig type for your animation in the character settings:

Tip: animation assets in the demo are separated, you can find Humanoid and Generic clips respectively in the Demo/Character directory.

Reason 2 - Zero keyframes

This is a common issue for some animation assets.

Unity lets you import animations without keyframes, meaning the animation doesn't change the bone's rotation or position. This is problematic for procedural animation; the bone is altered using IK and isn't reset in the next frame because of the zero-keyframe.

How to fix?

Reason 3 - Incorrect AimOffset

It's possible that your AimOffset rotates bones like Root or Skeleton:

How to fix?

Remove the unecessary bones from the aim offset, re-calculate the bones angles and save the aim table.

You can add missing keyframes in Unity, but it's tedious. If you have installed, you can import and export your animation with this option enabled:

❗
❔
Blender
In this case we have a Generic character
Make sure to check this property
Make sure to only inlcude pelvis/hips, spine bones and neck!