Pose sync is working

(tested host->client and client->host)
This commit is contained in:
Pascal Serrarens 2024-04-15 17:14:04 +02:00
parent 48f13ca4fa
commit 717ada8942
2 changed files with 2 additions and 4 deletions

View File

@ -69,6 +69,6 @@ MonoBehaviour:
_syncFingerSwing: 0
_syncFace: 0
_syncTracking: 0
_debug: 1
_debug: 0
_sendRate: 25
_createLocalRemotes: 0

View File

@ -265,8 +265,6 @@ namespace Passer.Humanoid {
if (humanoid.gameObject != null)
Destroy(humanoid.gameObject);
}
else
humanoid.nwId = 0;
}
}
@ -409,7 +407,7 @@ namespace Passer.Humanoid {
ReceiveHumanoidPoseRpc(data);
}
[Rpc(SendTo.NotServer)]
[Rpc(SendTo.NotOwner)]
protected virtual void ReceiveHumanoidPoseRpc(byte[] data) {
this.ReceiveHumanoidPose(data);
}