Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Tutorial - Lerping Fundamentals - Learn How to Use It & When to Use Its Variants

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Mar 29, 2022.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    266


    Hey all! Happy #TutorialTuesday!

    I've personally made mistakes when using lerp, like using
    transform.position = Vector3.Lerp(transform.position, point, time);

    when I didn't fully understand what the lerp was doing. In this tutorial I'm highlighting how to use some extremely common basic lerps like:
    • Lerp positions with a fixed time
    • Lerp positions with a fixed speed
    • Lerp Rotation and Slerp Rotation over a fixed time
    • Do a fixed speed rotation
    • Lerp color on an object using vertex colors (note: not all shaders support Vertex colors)

    As always, the full project is available on GitHub!

    If you got value from this video, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!
     
    Last edited: Mar 29, 2022