Easy Character Movement 2
  • Easy Character Movement 2
  • User Manual
    • General
      • Package Contents
      • Getting Started
      • Change Log
      • Components
        • Character
        • NavMesh Character
        • Character Movement
        • Slope Limit Behaviour
        • Physics Volume
        • Root Motion Controller
      • Examples
  • WALKTHROUGH
    • Creating a Character
    • Controlling a Character
    • Animating a Character
    • Extending a Character
    • Collision Detection and Events
    • Physics
    • Moving Platforms
    • AI Navigation
    • Cinemachine
  • SUPPORT
    • Customer Support
Powered by GitBook
On this page
  • Description
  • Public Methods
  1. User Manual
  2. General
  3. Components

Root Motion Controller

Description

The RootMotionController is a utility component designed to enhance root motion support. This component is responsible for calculating and supplying root motion velocity and rotation to the Character class.

The RootMotionController component must be added to the GameObject with your Animator, usually the model of your character.

Public Methods

/// <summary>
/// Flush any accumulated deltas.
/// This prevents accumulation while character is toggling root motion.
/// </summary>

public virtual void FlushAccumulatedDeltas()

/// <summary>
/// Return current root motion rotation and clears accumulated delta rotation.
/// </summary>

public virtual Quaternion ConsumeRootMotionRotation()

/// <summary>
/// Return current root motion velocity and clears accumulated delta positions.
/// </summary>

public virtual Vector3 ConsumeRootMotionVelocity(float deltaTime)
PreviousPhysics VolumeNextExamples

Last updated 1 year ago