::Based on the reference information about animation transitions, the issue likely stems from the animation controller’s transition settings. In the PlayerController script, the velocity magnitude is used to control the “Speed” parameter, which determines walking and idle states.
To fix this, ensure your animation transitions have proper threshold settings. Specifically:
- The Idle to Walking transition should have a minimum Speed threshold
- The Walking to Idle transition should have a maximum Speed threshold
These thresholds will prevent simultaneous “Walk” and “Idle” states by creating a clear boundary between movement states.
Can you share a screenshot of your Animator Controller’s transition settings to confirm the specific configuration?