Sending head thing pose updates
This commit is contained in:
parent
79350c9ea0
commit
998219ff07
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user