Item freeze in mid air for client owned object #1477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The problem was that the item GloveInsulated prefab had the NetworkTransform component's "ClientAuthoritative" property set as true, but the code allows only the server to set the Rigidbody component's "IsKinematic" property to be set to false upon releasing the object from the inventory slot. When happening on the host, this interaction behaves properly because the host is the owner client for the object, but when a client owns the object, even though the server side object falls to the ground, the client, being the owner of the object, doesn't let the object fall to the ground at its end.
PR checklist
A few prefabs have changes that are related to previous changes. (e.g., clothType property was removed in a previous PR, but the prefbas weren't updated)
Pictures/Videos)
Testing
Networking checklist
Changes
Changed all the 87 item prefabs' NetworkTransform component's "Client Authoritative" property to false.
Related issues/PRs
Items dragged out of slot freeze mid air on client #1360