- Home /
Using animations to move objects.
I have a GameObject, and I want to use an animator as its movement system. So I made all the animations I wanted in unity with the curve of the transform position and rotation. The move forward animation moves the transform position 5 in the z direction. The animation plays, then it switches back to a empty animation state after the animation is done, and also the transform returns to its original location. Any rotations I also do get reverted when I go back to that empty state. If I start the game object elsewhere, it will bring the object to 0 for the animation then move it back to the location that I started it. How would I go about making an animation based on the current location of the GameObject, and it would also be nice to base it off of its current rotation, but I will be happy with any solution to the first problem.
Sorry if this is a bit simple, I just have not seen how to fix this.
Your answer
Follow this Question
Related Questions
teleporter not working due to animator 0 Answers
Character keeps sinking into ground even though root motion is disabled 2 Answers
Play animation as the value changes from 0 to 1 with changing GameObject's position in unity 0 Answers
Animation position change 0 Answers
Animator position offset 0 Answers