Animation
Animation can be defined as the moving and changing of objects over time. A simple animation may be moving an object a little bit along a specific trajectory with each frame (direction vector) with a fixed velocity (units per second). In Unity, animation can be implemented by writing simple C# scripts that update an object's transform with each frame Update().
More complex animations can be defined using the Animation panel to draw curves for how object properties change over time. In the following example, the animation moves a ball linearly along the y axis while letting it wobble back and forth a small amount in the other two directions:
Unity also provides a third, even more advanced tool, known as the Animator Controller
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access