declare var Matter: any; /** * An attractors plugin for matter.js. * See the readme for usage and examples. * @module MatterAttractors */ declare var MatterAttractors: any; /** * @namespace Matter.Body * @see http://brm.io/matter-js/docs/classes/Body.html */ /** * This plugin adds a new property `body.plugin.attractors` to instances of `Matter.Body`. * This is an array of callback functions that will be called automatically * for every pair of bodies, on every engine update. * @property {Function[]} body.plugin.attractors * @memberof Matter.Body */ /** * An attractor function calculates the force to be applied * to `bodyB`, it should either: * - return the force vector to be applied to `bodyB` * - or apply the force to the body(s) itself * @callback AttractorFunction * @param {Matter.Body} bodyA * @param {Matter.Body} bodyB * @returns {(Vector|undefined)} a force vector (optional) */