Physics
dill pixel supports both the matter.js and Rapier physics engines.
Matter.js
Matter.js is a 2D physics engine that allows you to simulate physics in your game. This can be used to create realistic physics simulations, such as gravity, collisions, and more.
Rapier
Rapier is a set of 2D and 3D physics engines written using the Rust programming language. It targets applications requiring real-time physics like video games, animation, and robotics. It is designed to be fast, stable, and optionally cross-platform deterministic.