import { Component } from '@serpentity/serpentity'; /** * Component that stores a body for physics calculation * * @extends {external:Serpentity.Component} * @class BodyComponent * @param {object} config a configuration object to extend. */ export default class BodyComponent extends Component { constructor(config) { super(config); /** * The properthy that holds the matterjs body * * @property {external:MatterJs.Body} body * @instance * @memberof BodyComponent */ this.body = this.body || null; } }