This is a sample project that shows one way of replicating Madeline's hair movement in the game Celeste using Unity.
The branches in this repo represent the start and end points for implementation done in the video. The video can be found on the below YouTube channel.
youtube.com/@ShapedByRainStudios
Please feel free to take the this example project and use it however you'd like!
The algorithm used is inspired by this Reddit post where one of the creators of Celeste explained how they coded Madeline's hair.
https://www.reddit.com/r/gamedev/comments/9a0cfr/how_is_the_hair_in_celeste_made/