Correction to: Nature Computational Science https://doi.org/10.1038/s43588-021-00154-4, published online 25 November 2021.

In the version of this article initially published, a reference was omitted from the Code availability section. In the text now reading “Cross-platform MATLAB code implementing the rigid body framework can be found at https://github.com/luckyphill/EdgeBased (ref. 45),” the reference, as below, has been restored.

The error has been corrected in the HTML and PDF versions of the article.