struct in UnityEngine.Animations
/
Implemented in:UnityEngine.AnimationModule
Implements interfaces:IPlayable
A Playable that warps character facing to align with locomotion, distributing twist across a configurable spine chain for natural turning.
This playable supports two input modes: 1) Direction: provide the locomotion direction in world space or character local space as the target locomotion direction. 2) Angle: provide a target angle (in degrees) directly. The rotation can optionally redirect Root Motion. If enable useRootMotion, in the character space, calculate the direction of rotating the LocomotionAngle of the forwardDirection(+z) along the RotationAxis as the target locomotion direction.
| Null | Returns a null AnimationFacingWarpPlayable. |
| AddSpineBone | Adds a spine bone to the distribution chain. |
| GetInputMode | Gets the current input mode. |
| GetInterpRotationSpeed | Gets the interpolation speed. |
| GetKeepCurrentWarping | Returns whether to keep current warping state. |
| GetLocomotionAngle | Gets the current target turn angle (degrees) for Angle mode. |
| GetLocomotionDirection | Gets the current locomotion direction input. |
| GetMaxRotationAngle | Gets the maximum target angle clamp (degrees). |
| GetMaxRotationSpeed | Gets the maximum rotation speed in degrees/second. |
| GetNodeWeight | Returns the current node weight. |
| GetRootBone | Gets the configured root bone name. |
| GetRotationAxis | Gets the current rotation axis. |
| GetSmoothTime | Gets the smoothing time. |
| GetSpineBones | Gets the configured spine bones and weights. |
| GetSpineBoneWeight | Gets the weight of a specific spine bone by name. |
| GetUseGlobalSpaceForDirection | Gets whether global space or local space is used for direction input. |
| GetUseRootMotion | Returns whether Root Motion redirection is enabled. |
| GetUseSmoothDamping | Returns whether smooth damp or exponential decay interpolation is used for rotation smoothing. |
| GetWarpingOffsetAngle | Returns the current warping offset angle. |
| RemoveSpineBone | Removes a spine bone from the distribution chain. |
| SetDirectionInput | Provides locomotion and whether to use global space for Direction input mode. |
| SetInputMode | Sets how the target movement direction is provided (Direction or Angle). |
| SetInterpRotationSpeed | Sets the exponential decay interpolation speed. |
| SetKeepCurrentWarping | If enabled, keeps the current warping state. |
| SetLocomotionAngle | Sets the target turn angle (degrees) for Angle mode. |
| SetLocomotionDirection | Sets the locomotion direction for Direction mode. |
| SetMaxRotationAngle | Sets the clamp for target turn angle(degrees). |
| SetMaxRotationSpeed | Sets the maximum rotation speed in degrees/second. |
| SetNodeWeight | Sets the blend weight for mixing between the input animation and the warp result. |
| SetRootBone | Defines the root bone to rotate so the character's movement direction is steered toward the desiredDirection; typically "Hips" or "Pelvis". |
| SetRotationAxis | The axis to rotate around when warping the character to move forward to the target locomotion direction but face another direction (commonly Y). |
| SetSmoothTime | Sets the smooth time used by a SmoothDamp-style filter to stabilize warp velocity. |
| SetSpineBones | Sets the spine bones and their weights used to distribute counter-twist. |
| SetSpineBoneWeight | Updates the weight of a specific spine bone. |
| SetUseGlobalSpaceForDirection | Sets whether to use global space for direction input. |
| SetUseRootMotion | Enables redirecting Root Motion according to the computed facing warp. |
| SetUseSmoothDamping | If true, uses SmoothDamp for rotation smoothing. If false, uses exponential decay interpolation. |
| SetWarpingOffsetAngle | Sets an additional offset (in degrees) added to the computed target turn angle around the configured RotationAxis, to bias the final facing relative to the locomotion direction. |
| Create | Creates an AnimationFacingWarpPlayable in the PlayableGraph. |