Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.1k
stars
430
forks
source link
Calling SetParent causes NetworkObject to have an incorrect position on clients. #2959
With interpolation enabled when the server changes the parent of a NetworkObject the position on the clients is wrong for 1 frame.
Reproduce Steps
With interpolation enabled on the NetworkTransform
Player A goes next to NetworkObject,
The server attach the networkobject to Player A by calling SetParent,
On the Client(Player B) the NetworkObject position is now wrong.
Expected Outcome
We did not have that issue when using 1.2.0, we just updated to 1.9.1 and one of the gameplay mechanics suddenly started acting weird. Disabling interpolation seems to fix the issue but will cause the visuals to be less smooth
Description
With interpolation enabled when the server changes the parent of a NetworkObject the position on the clients is wrong for 1 frame.
Reproduce Steps
With interpolation enabled on the NetworkTransform
Expected Outcome
We did not have that issue when using 1.2.0, we just updated to 1.9.1 and one of the gameplay mechanics suddenly started acting weird. Disabling interpolation seems to fix the issue but will cause the visuals to be less smooth
Environment