Skip to content

Instantly share code, notes, and snippets.

View SwathingSoap's full-sized avatar
👨‍🍳
aRolfing

Dmitry Efremov SwathingSoap

👨‍🍳
aRolfing
View GitHub Profile
@FleshMobProductions
FleshMobProductions / SpringMotion.cs
Last active September 9, 2024 09:35
Ryan Juckett's Code for Damped Springs (https://www.ryanjuckett.com/damped-springs/) implemented in C# using UnityEngine Mathf methods
using UnityEngine;
namespace FMPUtils.Extensions
{
public static class SpringMotion
{
// Reference video:
// https://www.youtube.com/watch?v=bFOAipGJGA0
// Instant "Game Feel" Tutorial - Secrets of Springs Explained (by Toyful Games)
// The channel LlamAcademy also made an adaption of the concept for Unity,