◻️Look Modifier

Overview

Look Modifier is commonly used to apply spine rotation and leaning effects. This is essential to make the character look around without Blend Trees.

Look Modifier.
  • Pitch Input: pitch or look-up angle in degrees.

  • Yaw Input: yaw or look-right-left angle in degrees.

  • Use Yaw As Delta: whether to accumulate yaw input every frame.

  • Use Yaw Turn Angle: whether to use the turn-in-place angle. Set this to true if is used.

  • Roll Input: roll or leaning angle in degrees.

  • Pitch/Yaw/Roll Offset Elements: bones that will be affected by rotation.

Use-cases

Look Modifier is generally used for any effects that require distributed spine rotation. It is quite common to bind player input values from the gameplay code to control rotation:

Using character controller value to drive the pitch input.

By default, Yaw Input is a world rotation value, which means you can bind the player's rotation directly to this property:

How to Look using player's global aiming rotation.

If there isn't a global rotation value, it is recommended to use the player's horizontal delta input instead:

How to Look using player's delta horizontal/yaw input.
circle-check

Look angles are automatically adjusted to match the 90-degree target:

Auto-angle distribution.
circle-check

Last updated