Getting ready

We don't need anything special for this recipe. We are going to create it from scratch in Unity. You may also download the provided example project. Open the Chapter 10 MiscellaneousRecipe 01 Using math to animate an object directory and load the Example.unity scene there. If you run the game, you will see the finished effect—a curve animated with the Mathf.Sin() and Mathf.Cos() functions:

Final effect—curve animated with the Mathf.Sin() and Mathf.Cos() functions
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.175.253