From 53416c5edecb3ddeabad5488622fd47c5c9a75de Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 6 Jun 2025 12:13:15 +0200 Subject: [PATCH] Fix model parent when multiple participants --- Unity/Thing.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unity/Thing.cs b/Unity/Thing.cs index cf32570..ebacc63 100644 --- a/Unity/Thing.cs +++ b/Unity/Thing.cs @@ -194,7 +194,7 @@ namespace RoboidControl.Unity { Thing[] things = FindObjectsOfType(); Thing parentThing = null; foreach (Thing thing in things) { - if (thing.core.id == coreThing.id) { + if (thing.core.owner.networkId == coreThing.owner.networkId && thing.core.id == coreThing.id) { parentTransform = thing.transform; parentThing = thing; } @@ -213,7 +213,7 @@ namespace RoboidControl.Unity { } } else - ScanForThings(parentTransform); + ScanForThings(parentTransform); } else { this.transform.localScale = Vector3.one * 1;