import {compose} from '@avocado/core'; import {Vector} from '@avocado/math'; import {shapeFromJSON} from '@avocado/physics'; import {simpleState, Trait} from '../trait'; const decorate = compose( ); export class Physical extends decorate(Trait) { static defaultParams() { return { shape: undefined, }; } initialize() { this._shape = shapeFromJSON(this.params.get('shape')); } get shape() { return this._shape; } }