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)


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.