Skip to content

Latest commit

 

History

History
31 lines (15 loc) · 457 Bytes

API.md

File metadata and controls

31 lines (15 loc) · 457 Bytes

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