- Home /
How to make not smooth animation?
Hello, everyone. I am new to unity, and it is first time I get a contact with unity animation system. I am trying to create an animation with different sprites moving, but I do not want it to be smooth, so I want to ask: how can I disable that smoothness?
The picture below depicts my problem and should give and easier understanding of it: - The red line shows the line, by which my objects travel during animation; - The green line shows how I want my objects to move; - The yellow dots shows my middle keyframe location;
As you can see, objects are passing-by the position, which I given them in the middle (2nd) keyframe, but I want them to completly go to this position and then move further. All objects, which I move in animation, move proportionaly with each other (by the same route)
If you see other mistakes, not dedicated to this problem, which I may am doing, please tell, it would be very helpful for me :)
Answer by DanSuperGP · Feb 05, 2015 at 09:28 PM
At the bottom of the Animation window... there should be a little selector, on one side it says "Dope Sheet" and the other it says "Curves"
Go to the Curves mode.
Then for the individual key frames that you want to change, right click on the keyframe and select Broken.
Adjust the tangent handles to adjust the shape of the curves. Straight line motions generally work when the broken handles point directly along the line between the key frames.
You may need to insert additional keyframes to make it work.
Thank you, DanSuperGP. After a little time playing with Curves I finally solved my problem and your answer was very usefull! Thanks .
Oh my god! You saved my life, I was going crazy over this extra movement I was having.Similar to autghor's problem.
I was searching for exactly this kind of answer :D. Although, I used "Flat" ins$$anonymous$$d of broken. Thank you!
You can also right click on the Keyframe and select "Both Tangents->Linear" to automatically get rid of the smoothness
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Setting animator parameter on a single instance of a prefab sets the parameter for all instances 3 Answers
Object not moving after changing animator parameter 1 Answer
2D Character getting a weapon. Changing it's sprites/animations 0 Answers
Animator warning in editor, animation is preventing script from working 1 Answer