๐Ÿงพ
FPS Animation Framework
  • ๐Ÿ‘‹Welcome!
  • Workflow
    • ๐ŸฆพCharacter Rig
    • ๐Ÿ”ŒComponents
    • ๐Ÿ”ธProfiles and Layers
    • ๐Ÿ”—Linking
    • โž•Integration
    • โ–ถ๏ธPlaying Animations
    • ๐Ÿ’ปExtending the System
  • Demo Project
    • โœจResources
    • ๐ŸŽฎController
    • ๐Ÿ”ซWeapons and Items
    • โž•Attachment System
  • Fundamentals
    • ๐ŸฆพRig
    • โš™๏ธFramework Architecture
    • ๐Ÿ“‘Animator Profiles
    • ๐Ÿ“œAnimator Layer
    • ๐ŸŽฎInput System
    • ๐Ÿ”ถAnimator Layers
      • Weapon Layer General
      • Additive Layer
      • Ads Layer
      • Attach Hand Layer
      • Collision Layer
      • IK Layer
      • IK Motion Layer
      • Look Layer
      • Pose Offset Layer
      • Pose Sampler Layer
      • Sway Layer
      • View Layer
      • Blending Layer
      • Turn Layer
    • ๐Ÿ“šNew Animation Library
    • โš’๏ธTools
  • Recoil System
    • ๐Ÿ”ซRecoil Animation
    • ใ€ฝ๏ธRecoil Pattern
    • ๐Ÿ“นCamera Shake
  • Troubleshooting
    • โš ๏ธInitialization Warnings
    • โš ๏ธCan't Look Around
    • โš ๏ธWeapon Positioning
    • โš ๏ธWeapon is not moving
  • โš ๏ธAiming doesn't work
  • โš ๏ธTwisted feet when looking left/right
  • ๐ŸŒŒMisc
    • ๐Ÿ“œChangelog
      • 4.7.0 Update
Powered by GitBook
On this page
  • Description
  • Properties
  1. Fundamentals
  2. Animator Layers

Turn Layer

PreviousBlending LayerNextNew Animation Library

Last updated 9 months ago

Description

Turn Layer is a unique animation feature, which is designed to make the character turn in place if yaw angle is exceeded. Unlike many implementations, this layer does not make any changes to the character rotation logic.

Note: this layer works with Look Layer.

It is required to add a TurnOffset float property to the Input Config. This value will be used by the r to adjust the yaw rotation of the character:

Then, the Turn Layer must be added in the end of the Animator Profile. The layer itself will be rotating the character root bone against the controller rotation, which will make the player stay in place.

The next step is to make the Look layer use the TurnOffset property:

Finally, TurnLayer settings need to be adjusted.

Properties

  • Character Root Bone: this is the top bone in the skeleton hierarchy.

  • Angle Threshold: maximum allowed yaw rotation. If this value is exceeded, the turn will be performed.

  • Turn Curve: defines the easing of the turning value.

  • Turn Speed: the speed of the character turning.

  • Turn Input Property: the turn offset value. It will be modified by the turn layer, and will be read by the Look layer.

  • Animator Turn Right/Left Trigger: names of animator triggers, which will play the turning animation. These properties are optional, and only required if there are turning animations in the controller.

In order to use custom turning animations, it is crucial to specify them in the Animator Controller:

These animations are usually played via a trigger property, which is set in the Turn Layer.

๐Ÿ”ถ
Easy turn in place feature.
Turn Layer Settings.