- Home /
Animation not working correctly on moving object
Hello everyone, I'm making an object (spade) move towards the mouse with the Vector3.lerp method. I have a simple dig animation (made in unity's animation window) that lowers the spade's position and rotates it a little then resets back to the default position. But when I play the dig animation in game the spade jumps to the place I animated it, Is there a way to make animations play from current position in the world I tried root motion and It works with my rotations but the spade's position doesn't lower. Please Help :(
Answer by Cherno · Apr 03, 2016 at 10:49 PM
I had the same problem a few days ago. Forget root motion, it doesn't do anything in this case as far as I could tell. What you need to do instead is make the animated object a child of another object. This way, the animation will be in local space.
Your answer
Follow this Question
Related Questions
Move object towards mouse in full 3D space 2 Answers
Mouse Movement (Tracking) 1 Answer
Help with mouse and keyboard movement. 0 Answers
Animation Question: Character gets bitten 0 Answers
Animation causes rigidbody to move 0 Answers