diff --git a/packages/physics/traits/physical.trait.js b/packages/physics/traits/physical.trait.js index 00c4661..a0b0252 100644 --- a/packages/physics/traits/physical.trait.js +++ b/packages/physics/traits/physical.trait.js @@ -89,6 +89,10 @@ export class Physical extends decorate(Trait) { } }, + dying: () => { + this.entity.addedToPhysics = false; + }, + positionChanged: () => { if (this._body) { const position = this.entity.position;