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.
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
I solved the problem by setting Animation Culling Mode to Update Transforms and unchecking the loop time from the animation window hope this helps