Fixed issues with rotation on object spawn
This commit is contained in:
parent
b66a351859
commit
4151da4f49
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user