For another Lerp-like easing function (that I forgot to mention in the video) try Mathf Smooth Step! It works the same as the Smooth Step formula in the video, except that it uses a built-in function to do it: docs.unity3d.com/ScriptReference/Mathf.SmoothStep.html
@butterthegrand5783 Жыл бұрын
You have had the answer to just about every question no one else can seem to get. Really an amazing channel.
@GameDevBeginner Жыл бұрын
Thank you so much!
@Equisdeification Жыл бұрын
Your channel is incredible, you explain things in a very easy way to understand!
@GameDevBeginner Жыл бұрын
Thanks so much!
@RadzoI Жыл бұрын
You always get me hyped
@bigshot1724 Жыл бұрын
Another underrated channel! Keep up the good work! You deserve so much more!
@veddy16749 ай бұрын
this video, even with years and years of experience, it's extremely useful, i saved it so i can access it easily lmao
@RadzoI Жыл бұрын
Thank you so much you are the best KZbinr ever
@GameDevBeginner Жыл бұрын
Thank you!
@wavesweare Жыл бұрын
simple thumbnail, but the content and the quality is out of this world. you are awesome
@benjaminsmallarz5059 Жыл бұрын
Inb4 this channel blows up, this is extremely nice quality
@isteyak78 Жыл бұрын
These are the kind of video we need, it's not just made a specific task but for everyone who use unity❤
@thenukdevendra1902 Жыл бұрын
Absolutely amazing video! Thanks a lot, wish you the best of luck!
@CyclesSomething Жыл бұрын
Do more of these they will deffo get views
@GameDevBeginner Жыл бұрын
Will do 👍🏻
@InzeDev Жыл бұрын
I had two instances of Lerp in my game. One for a follower that floats behind you and is meant to feel like their momentum never really stops, so it works well. The other is for the camera. However, now that I know SmoothedDamp exists I've completely replaced the script for my camera movement resulting in something I am so much happier with. I also have some grid based movement that I've already been using MoveToTarget for, but I hadn't even thought about using that for health bars despite how obvious it seems in retrospect. Really enjoy your content. Your video on Events & Delegates was incredibly helpful for one of the earliest problems I was trying to solve, so I'm glad I've stumbled across your channel again to show some appreciation.
@GameDevBeginner Жыл бұрын
Thank you! Happy to help.
@MyPing0 Жыл бұрын
Nice video! I don't feel Lerp isn't really talked about much so this is great for people who'll want to learn about it properly.
@Bananenbauer123 Жыл бұрын
Amazing video. I looove the clean and yet very practice oriented approach of your videos. Tons of examples and different uses for many methods we have available. See, I was using lerp to make a camera pan and follow the mouse cursor. Now I have to check out the more snappy effect of Mathf.SmoothDamp Edit: Your channel is totally underrated, I so hope the algorythm blesses one of your futures videos so your channel can blow up.
@GameDevBeginner Жыл бұрын
Thank you!
@gameaudioinstitute Жыл бұрын
@Game Dev Beginner - just wanted to say i got a tremendous amount of useful info from your Coroutine web post awhile back. sort of inspired me to cover it a bit in our scripting shorts series - most recently i tried ChatGPT to write a script to play random sounds from an array with random delay and it did great on that. really glad you're extending the blog posts into full fledged videos - clean, simple, and informative presentation here. subscribed! (scott from GAI)
@GameDevBeginner Жыл бұрын
Thanks Scott, happy to help!
@chopov11 Жыл бұрын
Beautiful channel please keep posting. Such good video editing and education
@MAGNETO-i1i Жыл бұрын
The visual explanations are great !
@GameDevBeginner Жыл бұрын
Thank you!
@mapolaxplays488910 ай бұрын
This video is incredible easy to understand.
@maykefernandesdossantos7374 Жыл бұрын
your channel is one of the best on unity tutorials man! have you considered creating unity courses?
@ilyapavlov1377 Жыл бұрын
Please, more!!! Thank you!
@TurkiKAlqou Жыл бұрын
YOUR CHANNEL IS AMAZING!
@GameDevBeginner Жыл бұрын
Thank you so much!
@MarekNijaki Жыл бұрын
Awesome video as always!
@GameDevBeginner Жыл бұрын
Thank you!
@migleding9817 Жыл бұрын
another way to create smooth movement using lerp, that should be correct float lerpAmountForFrame = Mathf.Pow(0.5, lerpAmount * Time.deltaTime); transform.position = Vector3.Lerp(transform.position, target, lerpAmountForFrame); also pro tip: combining both lerp and moveTowards gives you a hella nice versatile smooth movement behaviour, also depending on the arrangement of the two. Plus the value will snap to 0
@AbdullahGameDev Жыл бұрын
Amazing 👏
@patrickberbon3135 Жыл бұрын
Awesome video
@Barldon Жыл бұрын
6:36 This saved my life. Lol.
@toomuchdogg9180 Жыл бұрын
I have a question, so I recently watched your jump video, and I recall you set you player to interpolate in the editor to make the movement more smooth. I am just wondering if that is a whole different thing or what. Also I have been loving your videos I’ve watched almost every single one in the last few days!
@GameDevBeginner Жыл бұрын
Thank you! So the interpolation setting I set on the jump video smooths out fixed update calls because they are usually only at 50fps by default. You'd usually do it on a player that is moved by physics, especially if there's a camera attached.
@toomuchdogg9180 Жыл бұрын
@@GameDevBeginner cool, thanks for the response. One last question is if you have ever have ever considered doing private lessons (paid of course), where I could just go through my project with you and your could give some tips and feedback on ways to improve it. I understand if you may be to busy for that sort of thing.
@Ian_Brock Жыл бұрын
I'm making a 2D platformer that basically uses Lerp for everything lol. I use the DoTween library though for their movement. Its super useful for moving platforms, flashing save icons on screen, etc.
@hide_ch Жыл бұрын
I am currently developing a system to move with Lerp. However, I do not know how to cancel the move from A to B. I want to use it at respawn time. When a player respawns, I want to return only the "floor object" to its initial position. However, the "floor object" is set to move from A to B in Lerp. Even if I switch it on and off with a boolean variable, the Lerp keeps moving to B and arrives at B. When the player hits the outzone collider, I want to cancel the Lerp movement of the "floor object" and move it from its initial position, but I can't think of a good way to do this...
@AlexandreCoulonOldChannel Жыл бұрын
Thanks
@WickyPayne Жыл бұрын
06:05 could we use Math.InverseLerp for that ?
@GameDevBeginner Жыл бұрын
Yes, I think so. I forgot that existed.
@AzazelezazA2 ай бұрын
Which IDE and theme are you using in this video? @GameDevBeginner
@GameDevBeginner2 ай бұрын
Visual Studio + Gruvbox
@tirt Жыл бұрын
LeenTween is also great!
@GameDevBeginner Жыл бұрын
Great tip, thanks!
@MrFaciio Жыл бұрын
I prefer DoTween :D
@Marc142000 Жыл бұрын
Your voice reminds me a lot of Mark Brown's
@1721nick4 ай бұрын
Using Lerp to move something towards a changing target IS wrong, because it is framerate dependant. Say you set the value of t to be 0.5, and you're Lerping from point A to B. Each frame, the distance between the two points is halved. This means that at a higher frame rate, you're halving the distance more frequently, which makes the movement faster as a result. Conversely, it will be slower at lower frame rates.
@GameDevBeginner4 ай бұрын
What you're saying is right, but I'm not sure that I've seen anyone use Lerp like that. The only live target method I've seen used is when delta Time is passed in place of t, which is still consistently scaled.
@random_precision_software Жыл бұрын
Now I'm even more confused !😵💫
@BetoSantosArtАй бұрын
"How do you use lerp in your projects?" Me: "the wrong way" Hope not to do so, anymore.