diff --git a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs index e07d0c7..97b46ec 100644 --- a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs +++ b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs @@ -339,6 +339,14 @@ namespace Passer.Humanoid protected virtual void LateUpdate() { participant.Update((ulong)(Time.time * 1000)); + headThing.orientation = SwingTwist.FromQuaternion(humanoid.headTarget.transform.localRotation); + if (headThing.orientationUpdated) + { + //headThing.owner.Send(new PoseMsg(headThing.owner.networkId, headThing)); + this.participant.remoteSite.Send(new PoseMsg(headThing.owner.networkId, headThing)); + headThing.orientationUpdated = false; + } + // foreach (Client client in Client.clients) { // if (client is HumanoidParticipant humanoidClient) { // while (humanoidClient.messageQueue.TryDequeue(out Passer.Control.IMessage msg))