Unity Slerp Visualized – Like lerp, but rotund




Vector3.Slerp is the unpopular younger brother of lerp, but it doesn’t need to be that way! It has a load of utility once you learn how it works.

I’ll teach you what slerp is, how slerp works and how to use slerp… slerp

I used ‘Shapes’ to make a few of these effects, you can check it out here: https://assetstore.unity.com/packages/tools/particles-effects/shapes-173167?aid=1011lkRxs

Drop this in your scene to play around with slerp: https://drive.google.com/file/d/1nkGD4Px97gDHtww-GJwSIcm1sFS9F0tf/view?usp=sharing
Script: https://gist.github.com/Matthew-J-Spencer/9044a711cddc4340c6d2aa0656a15d2a
=========

🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD: https://discord.gg/GqeHHnhHpz
✅ MORE TUTORIALS: https://www.youtube.com/tarodev

Slerp official description:
Spherically interpolates between two vectors.

Interpolates between a and b by amount t. The difference between this and linear interpolation (aka, « lerp ») is that the vectors are treated as directions rather than points in space. The direction of the returned vector is interpolated by the angle and its magnitude is interpolated between the magnitudes of from and to.

Voir sur youtube

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0