Paper JS & Matter JS integration
Old project demonstrating how you could use a 2D drawing library (PaperJS) together with a 2D physics library (MatterJS) in Javascript. It was fun, and you can check the repo here.

A recording of an example interaction between user drawing and the physics engine