Hey guys, I’m trying to animate a spaceship barrel roll, and for some reason when the roll animation end, the ship goes back to the starting position.
Attaching a GIF to display :
https://gifyu.com/image/tQ8I
Here is how I set up the animator, as you can see there are no properites on the idle animation:
What am I doing wrong? Thank you.
Well normally you’d make a “Roll” animation and actually move the gameObject per script rather than moving it via animation. So if there is no script changing it’s position, then it’s most likely that when it stops the “Roll” animation it would just reset the Transform.position to the value it had before when transitioning to the empty “idle” animation. I’d just recommend you doing the actual movement via script and make a “roll” animation with it standing still, that way you won’t have those problems and it’s just easier. 