Mass and spring simulation (inspired by xspringies)