]>
git.r.bdr.sh - rbdr/sumo/blob - lib/components/body.js
1 import { Component
} from '@serpentity/serpentity';
4 * Component that stores a body for physics calculation
6 * @extends {external:Serpentity.Component}
8 * @param {object} config a configuration object to extend.
10 export default class BodyComponent
extends Component
{
16 * The properthy that holds the matterjs body
18 * @property {external:MatterJs.Body} body
20 * @memberof BodyComponent
22 this.body
= this.body
|| null;