https://primanota.net/the-subtle-way/collisions-with-frictions-chords.htm