- Home /
GameObject won't move when I attach an Animation Controller
When I attach an Animator component to my GameObject in order to animate it, it still moves. However, when I fill in the Controller with my Controller, my object will no longer move. I check, and my rigidbody2D definitely has Velocity, but it isn't moving.
Any ideas as to why this might happen? I'm really at a loss, here.
Answer by YeasinBeen · Apr 25, 2019 at 10:55 PM
Here i am giving you the solution :
First make an empty game object , then add the player sprite as a child .
Add all the rigidbodies and the Box colliders to the empty game object
Also add the player control script to the empty game object
will solve your problem
Answer by Crump05 · Jan 09, 2021 at 08:39 PM
I solved the problem by setting Animation Culling Mode to Update Transforms and unchecking the loop time from the animation window hope this helps
Your answer
![](https://koobas.hobune.stream/wayback/20220613121845im_/https://answers.unity.com/themes/thub/images/avi.jpg)