New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetworkTransform not synchronizing Y position well on Unity 2022+ versions #2595
Comments
|
👀 !! |
|
@kevincastejon Let me know if you see the same results on your end? |
No, the character is Rigidbody+CapsuleCollider+simple controller script. The same issue happen in the Client Driven bitesize sample that is, I believe, using CharacterController.
I just tested it and I can confirm the issue is not happening anymore when half float precision is enabled. |
|
@kevincastejon Thank you for your details on reporting this issue. Much appreciated and helpful! 👍 |
|
No problem, I'm glad to help, and thank you for the incoming fix. |
|
@dawnmichal |
|
@kevincastejon @dawnmichal |
|
Thank you very much for the work |


Description
The NetworkTransform transform position synchronization is not working well for the Y axis when used into Unity versions 2022+ (I tested with 2022.3.0 and with 2023.1.0). Prior 2021 versions (tested with 2021.3.23) are working well as intended.
It happens at the end of a jump, the representation of the distant character will remain slightly above the ground.
To ensure that I was not doing things wrong, I tested the bitesize sample (the one which demonstrate client driven movements) on 2021, 2022 and 2023 Unity versions. The issue is happening too with this very sample project, in 2022+.
Even weirder, the issue seems to happen only when there is a movement on one or both of the other axes (X and Z), as an "in-place" jump is synchronized well...
Reproduce Steps
1 - Open the Client Driven bitesize sample on Unity 2022+ (effectively tested on 2022.3.0 and 2023.1.0 with the Host feature)
2 - Jump while moving with one of the character (host or client)
3 - See the desynchronization on the Y axis position on the other end.
4 - Optionally jump "in-place" (aka with no movement on the XZ plane) and the synchronization on the Y axis position on the other end working well as intended.
Actual Outcome
Desynchronization on the Y axis position with the NetworkTransform component while moving on the XZ plane, with Unity version 2022+.
Expected Outcome
No desynchronization, as it is on Unity version 2021.
Screenshots
2021 Unity version - No issue

2022 Unity version - Y position desynchronization Issue when landing while moving on the XZ plane - No issue when jumping 'in-place'

Environment
Additional Context
To clarify once again the context of this desynchronization on the Y axis position issue:
The text was updated successfully, but these errors were encountered: