newton.js.org

Lightweight JavaScript 2D rigid body physics engine



Other demos

Download

Core

newton.core.js
IIFE (142K)

newton.core.min.js
IIFE minified (79K)
newton.core.cjs.js
CommonJS (136K)

newton.core.min.cjs.js
CommonJS minified (80K)
newton.core.esm.js
ES module (134K)

newton.core.esm.min.js
ES module minified (79K)

Core + renderer

newton.js
IIFE (392K)

newton.min.js
IIFE minified (263K)
newton.cjs.js
CommonJS (377K)

newton.cjs.js
CommonJS minified (264K)
newton.esm.js
ES module (376K)

newton.esm.min.js
ES module minified (267K)