MENU

Fun & Interesting

How to Use Lerp (Unity Tutorial)

Ketra Games 82,952 lượt xem 3 years ago
Video Not Working? Fix It Now

In this Unity game development tutorial we're going to look at the mathematical function, Lerp, or linear interpolation.

This function allows us to linearly interpolate between two values, and is most commonly used for changing values over a period of time.

While its usage is really common in Unity, it's quite often misunderstood, and can easily be used in the wrong way.

The final script from the video can be found here - https://dotnetfiddle.net/IXDhla

Support us on Patreon - https://www.patreon.com/ketragames
or if you'd like to buy us a coffee - https://ko-fi.com/ketragames

00:00 - Introduction
00:25 - Using Lerp the correct way
03:20 - Common incorrect usage of Lerp
04:32 - Using Lerp for non linear interpolation
06:19 - Summary

#KetraGames #LearnUnity #UnityTutorials #UnityTips

Comment