diff --git a/packages/sdk/src/core/contextInternal.ts b/packages/sdk/src/core/contextInternal.ts index fa2bff78..7d78fab7 100644 --- a/packages/sdk/src/core/contextInternal.ts +++ b/packages/sdk/src/core/contextInternal.ts @@ -451,11 +451,15 @@ export class ContextInternal { actor.copy(sactor); if (isNewActor) { newActorIds.push(actor.id); - if (actor.rigidBody) { + if (actor.rigidBody) { if (!actor.owner) { - actor.owner = this._rigidBodyDefaultOwner; + if (!this._rigidBodyDefaultOwner) { + this._rigidBodyOrphanSet.add(actor.id); + } else { + actor.owner = this._rigidBodyDefaultOwner; + this._rigidBodyOwnerMap.set(actor.id, actor.owner); + } } - this._rigidBodyOwnerMap.set(actor.id, actor.owner); } } });