here is a small video about the problem
You should also try adding newPosition = transform.forward * Speed
in Update
method. Basically, combing the animation and transform.position
, it may work out for you.
If the model and the animation is downloaded from Mixamo, please make sure you un-check In-Place checkbox before downloading in the Animation tab.
If that is done correctly, make sure on import, DO NOT LOOP Pose, just LOOP TIME should be turned ON and make sure LOOP POSE is turned OFF.
And in the Animator Controller make sure Apply Root Motion is turned ON for the corresponding Game Object. @ahmedgamil119 Hope this helps.
For reference try searching “import character from mixamo to unity”