- Home /
How do i start an animation from the current rotation ?
How do i start an animation from the current rotation ?
In my flight game, I have a model that i apply a constant translate in z direction (forward) to simulate thrust. i have created two animations turn left and roll. The turn left animation is a series of rotations that cause the aircraft to turn left. The roll animation causes the aircraft to spin 360 on the z axis (forward direction).
The turn left animation works perfectly as i expected. The problem is, when i play the turn left animation and then the roll animation. On playing the roll animation the aircraft snaps back to the original rotation (as if the aircraft never turned left)
The issue, i assume is that on the roll animation Unity is playing from the absolute values for the rotation. not taking the current rotation values into account. How can i cause the roll animation to play from the current rotation ?
My current structure is
Player
Aircraft (FBX) <- AnimationComponent here but animations used on "Model" object (Child item)
Model <- Thrust Script here (translate z on Update())
I am using the legacy Animation system
Your answer
![](https://koobas.hobune.stream/wayback/20220613085757im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
RemoveMixingTransform function? 3 Answers
Control the Animation 1 Answer
Blend Shapes in Unity? 4 Answers
Rotate object and do not rotate animation (simmetrical objects) 1 Answer
Having trouble having a player run and shoot at the same time.... 0 Answers