This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |