Root motion scripting in Unity

So, I'm experimenting with the Unity third person controller, with my own character and I want to add an animation that applies root motion, but the other animations don't.

private void Dance()

{

if (Input.GetKeyDown(KeyCode.X))

        {

//Debug.Log("Dance");

_animator.SetBool(_animIDDance, true);


_animator.applyRootMotion = true;


}

        }


related posts I found online

https://forum.unity.com/threads/animated-character-jumps-with-physics-root-motion-rigidbody.672427/

https://forum.unity.com/threads/disable-root-motion-on-some-animations.563482/

Comments

Popular posts from this blog

on middlebrow

guy