Description
When Transform.Rotate is used on NetworkTransform object with an X axis change - on server/host object rotates correctly, but on client object rotates 180 degrees to one side and then 180 degrees to the other side.
Reproduce Steps
- Make a fresh scene with a cube
- Put NetworkObject on a cube
- Put NetworkTransform on a cube, make sure interpolation is on.
- Put a script from here on a cube: https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/blob/develop/testproject/Assets/Scripts/MoveInCircle.cs
- Comment out line 55 - transform.position =...
- Comment out line 57 - transform.localScale =...
- Change line 56 from transform.Rotate(0, m_RotationSpeed * deltaTime, 0); to transform.Rotate(m_RotationSpeed * deltaTime, 0, 0);
- Launch two clients.
- Host as first one and observe that Cube rotates correctly.
- Join as client and observe how Cube rotates.
Actual Outcome
Cube rotates to 180 degrees to one side and then to 180 degrees in the opposite side.
Expected Outcome
Cube rotation is correctly synced with the server.
Environment
- Win10
- Unity Version: 2021.3.15.f1
- Netcode Version: 1.1.0
Description
When Transform.Rotate is used on NetworkTransform object with an X axis change - on server/host object rotates correctly, but on client object rotates 180 degrees to one side and then 180 degrees to the other side.
Reproduce Steps
Actual Outcome
Cube rotates to 180 degrees to one side and then to 180 degrees in the opposite side.
Expected Outcome
Cube rotation is correctly synced with the server.
Environment