Add JUICE to Your Game with Springs
Published: 02 Aug 2022
Something a lot of young indies skip over is the "juice factor" of their game. Simple, bland transitions and movement leaves the game feeling boring. This week you can not only learn about Springs and how to use them, but also get a framework to use them in your game today!
Springs allow us to move, rotate, and scale objects in a, well, springy way that just ends up feeling a lot more satisfying than the simple Vector3.Lerp or Quaternion.Slerp you may be using today. They also achieve this without any animation keyframes or Animation Curve definitions so they're really fast to implement!
They're not just limited to scaling, translating, or rotating objects either. You can use this on any arbitrary value. Why not fade an object in using a springy alpha? Need to transition a color? Maybe that might feel better if it were springy!
Not all objects always need to be springy, but probably you'll find something in your game that just feels better if it had a little more juice!
๐จโ๐ป As always, the full project is available on GitHub: https://github.com/llamacademy/juicy-springs!
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
๐ References
โซ Toyful Games Video: https://youtu.be/bFOAipGJGA0
โซ Thaminn Unity Spring: https://github.com/thammin/unity-spring
โซ Springs In Depth: https://www.ryanjuckett.com/damped-springs/
โซ Simple Harmonic Motion on Wikipedia: https://en.wikipedia.org/wiki/Simple_harmonic_motion
๐งก Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
๐ Patreon: https://www.patreon.com/llamacademy
๐ YouTube Member: https://www.youtube.com/channel/UCnWm6pMD38R1E2vCAByGb6w/join or click the Join button on any video
๐ Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader-graph?affcode=45216_kuvg0bp7
๐ Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
๐ธ Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
๐ธ Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publisher-sale?aid=1101l9QvC (affiliate)
๐ธ Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sale=true&orderBy=1&aid=1101l9QvC (affiliate)