Skip to content

fix: Set state private RPC handlers were not honoring local vs world space assignment of position and rotation #2203

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

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Sep 14, 2022

Noticed the SetStateServerRpc and SetStateClientRpc were not honoring local vs world position and rotation. This just replaces that legacy code with the SetStateInternal method that does honor local vs world space.

Changelog

  • Fixed issue where the SetStateServerRpc and SetStateClientRpc were not honoring local vs world space settings when applying the position and rotation.

Testing and Documentation

  • Includes modifications to existing integration tests.

SetStateClientRpc and SetStateServerRpc were not updated to use SetStateInternal which honors local vs world space transform setting.s
Modified existing tests to include testing SetState which validates the changes made to NetworkTransform.SetState and associated private methods.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review September 14, 2022 17:08
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner September 14, 2022 17:08
adding the PR number to the changelog entry.
removing conditional check that was not needed.
adding further clarity as to where the two rpc methods were located.
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) September 14, 2022 17:25
@NoelStephensUnity NoelStephensUnity merged commit fdebb55 into develop Sep 14, 2022
@NoelStephensUnity NoelStephensUnity deleted the fix/set-state-networktransform-local-space-is-not-honored branch September 14, 2022 18:19
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
…space assignment of position and rotation (Unity-Technologies#2203)

* fix

SetStateClientRpc and SetStateServerRpc were not updated to use SetStateInternal which honors local vs world space transform setting.s

* update changelog

* test

Modified existing tests to include testing SetState which validates the changes made to NetworkTransform.SetState and associated private methods.

* update

adding the PR number to the changelog entry.

* test

removing conditional check that was not needed.

* update

adding further clarity as to where the two rpc methods were located.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants