Fixed issues with rotation on object spawn

This commit is contained in:
Albin Corén 2018-04-03 05:57:38 +02:00
parent b66a351859
commit 4151da4f49
2 changed files with 6 additions and 6 deletions

View File

@ -1652,9 +1652,9 @@ namespace MLAPI.MonoBehaviours.Core
writer.Write(pair.Value.transform.position.y);
writer.Write(pair.Value.transform.position.z);
writer.Write(pair.Value.transform.rotation.x);
writer.Write(pair.Value.transform.rotation.y);
writer.Write(pair.Value.transform.rotation.z);
writer.Write(pair.Value.transform.rotation.eulerAngles.x);
writer.Write(pair.Value.transform.rotation.eulerAngles.y);
writer.Write(pair.Value.transform.rotation.eulerAngles.z);
}
}
}

View File

@ -228,9 +228,9 @@ namespace MLAPI.NetworkingManagerComponents.Core
writer.Write(netObject.transform.position.y);
writer.Write(netObject.transform.position.z);
writer.Write(netObject.transform.rotation.x);
writer.Write(netObject.transform.rotation.y);
writer.Write(netObject.transform.rotation.z);
writer.Write(netObject.transform.rotation.eulerAngles.x);
writer.Write(netObject.transform.rotation.eulerAngles.y);
writer.Write(netObject.transform.rotation.eulerAngles.z);
}
netManager.Send("MLAPI_ADD_OBJECT", "MLAPI_INTERNAL", stream.GetBuffer());