The repo is at https://github.com/mkhan45/clothsim, it's pretty compact and most of the relevant code is in src/main_state.rs