Rope physics (more efficient version) | ScratchStats