Skip to content

Instantly share code, notes, and snippets.

@Andicraft
Andicraft / SecondOrderDynamics.cs
Last active July 23, 2025 16:31
Second Order Dynamics for Godot 4 in C#. Used for cool procedural animation stuff.
using System;
using Godot;
// based on https://www.youtube.com/watch?v=KPoeNZZ6H4s
// written with generics because repeating code sucks
// rough explanation of the parameters:
// --------------
// f is the frequency of the system, in hz
// things will move faster if this is high basically