This commit is contained in:
mischa 2024-10-16 16:06:13 +02:00
parent 22bc5f3fbd
commit 7ff7bb3d83

View File

@ -256,9 +256,18 @@ void SerializeServerDelta(NetworkWriter writer, byte baselineTick, Vector3? posi
{
writer.WriteByte(baselineTick);
if (syncPosition) writer.WriteVector3(position.Value);
if (syncRotation) writer.WriteQuaternion(rotation.Value);
if (syncScale) writer.WriteVector3(scale.Value);
if (syncPosition)
{
writer.WriteVector3(position.Value);
}
if (syncRotation)
{
writer.WriteQuaternion(rotation.Value);
}
if (syncScale)
{
writer.WriteVector3(scale.Value);
}
}
bool DeserializeServerDelta(NetworkReader reader, out byte baselineTick, out Vector3? position, out Quaternion? rotation, out Vector3? scale)