From c1a7fc8e9fc61999bc3771f793276d49e0672865 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 9 Dec 2024 12:07:28 +0100 Subject: [PATCH] Add sending shoulders and fix root thing --- .../Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs index a6718e7..14ab0f0 100644 --- a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs +++ b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs @@ -380,10 +380,12 @@ namespace Passer.Humanoid { SendSubThing(remoteHumanoid, remoteHumanoid.headTarget.neck); SendSubThing(remoteHumanoid, remoteHumanoid.headTarget.head); + SendSubThing(remoteHumanoid, remoteHumanoid.leftHandTarget.shoulder); SendSubThing(remoteHumanoid, remoteHumanoid.leftHandTarget.upperArm); SendSubThing(remoteHumanoid, remoteHumanoid.leftHandTarget.forearm); SendSubThing(remoteHumanoid, remoteHumanoid.leftHandTarget.hand); + SendSubThing(remoteHumanoid, remoteHumanoid.rightHandTarget.shoulder); SendSubThing(remoteHumanoid, remoteHumanoid.rightHandTarget.upperArm); SendSubThing(remoteHumanoid, remoteHumanoid.rightHandTarget.forearm); SendSubThing(remoteHumanoid, remoteHumanoid.rightHandTarget.hand); @@ -413,7 +415,7 @@ namespace Passer.Humanoid { if (debug <= HumanoidNetworking.DebugLevel.Debug) Debug.Log("Send Thing " + humanoid.humanoidId + " nwId: " + humanoid.nwId); - ThingMsg.Send(client, (byte)humanoid.nwId, 0, 1); + ThingMsg.Send(client, 0, 1, 0); //ThingMsg thingMsg = new(0, 1); //SendMsg(thingMsg); //if (udpClient != null) {