diff --git a/packages/entity/traits/physical.js b/packages/entity/traits/physical.js index c3eb1e5..6458424 100644 --- a/packages/entity/traits/physical.js +++ b/packages/entity/traits/physical.js @@ -50,7 +50,7 @@ export class Physical extends decorate(Trait) { } removeFromWorld() { - if (this._world) { + if (this._world && this._body) { this._world.removeBody(this._body); } this._body = undefined;