Hey Guys, i'm pretty new to Unity and i'm using the Animation from mixamo and if i'm pressing w i want that the character is moving. The character is moving but when i stop pressing 'w' the character is teleporting back to the position. Can anybody tell me how to fix it? Thx.
lets start with seeing your code (using code tags) https://forum.unity.com/threads/using-code-tags-properly.143875/
Code: Code (CSharp): public override void OnStateUpdate(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex) { Debug.Log("TEST1"); if (Input.GetKey(KeyCode.W)) { Debug.Log("TEST"); animator.Play("Walking"); } } Gif what happens: https://gyazo.com/0ba63ac632e116c180c4c1aed47ee521 Using: Basic Locomotion Pack from mixamo
The only thing that is moving is the animation(I guess), check the root motion variable on the animator if you want to move by animation Also, you're doing it way wrong, look at some tutorials
Its hard to say because I don't know exactly what you're trying to do, but if you look at tutorials on this you'll see what I mean.
Well fixed it just have a little problem now. Idk if you can see it but the leg is a little bit buggy idk i think i need to do something with the transitions but dont know what i appreciate every help. Thx Gif: https://gyazo.com/87840e077d130da7fef1af5003866ad9
Please say how you fixed it, also you link looks like a single frame(probably just my sucky internet) https://docs.unity3d.com/Manual/RootMotion.html https://unity3d.com/learn/tutorials/topics/animation/authoring-root-motion https://www.youtube.com/results?sea...search_sort=relevance&search_category=0&page=