UNPKG

matter-dom-plugin

Version:

A plugin to apply matter.js's physics to DOM elements

32 lines (15 loc) 457 B
<!-- Start index.js --> ## PluginExample An example plugin for matter.js. ## PluginExample.Body.init(body) Example function that removes friction every created body. Automatically called by the plugin. ### Params: * **Matter.Body** *body* The body to init. ### Return: * No return value. ## Matter.Body See: http://brm.io/matter-js/docs/classes/Body.html <!-- End index.js --> <!-- Start webpack.config.js --> <!-- End webpack.config.js -->