Introducing Line Renderer Lerp (How to animate smoothly between 2 sets of line renderer in Unity)

preview_player
Показать описание
After a quick Overview of what lerp does and how it does it, I show how I Lerp between 2 Line Renderers and how I expanded on that to be able to lerp between any set of 2 line renderers.

Code can be found at:

Disclaimer: It's not very organized and still needs work (more specifically on how it splits lines) but it's fun to play around with. It can even be used to create generative/procedural shapes "in between" 2 line renderer sets.
Рекомендации по теме
Комментарии
Автор

I’d previously learned about lerp, but this quick demonstration was wonderful. Fantastic work buddy keep it up.

williamchalifoux
Автор

Nice one :)
Looking forward to implement this into a project I have in mind.
PS: Make sure you tag this video as a 'Short'. They are hot on the algorithm these days.

Rovsau
Автор

On 0:23 there is a function called CalculatePositions(), but after some searching I realized it is actually the Vector3[] LineLerp() method in the Pastebin.
A case of mistaken identity 🕵️

Rovsau
Автор

Thanks for the video. I was always curious about how do they change values and it looks good :d.

musahansever
Автор

Unable to open site can you provide code here

zeelkheni