mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
92965731d1
* Fix - From !isLocalPlayer to !hasAuthority Changed !isLocalPlayer to !hasAuthority because object might not be player object. * Update Assets/Mirror/Components/NetworkTransform2k/NetworkTransformBase.cs * Fix - delayed movement in clients in ClientAuthority mode - NetworkTransformBase.cs Fixed issue where clients experience delayed movement in client authority mode. Problem: Clients update the server first, server builds buffer then moves object, and then sends server's current snapshot to all the other clients who then build their buffers first before moving. This results in delayed movement in clients. Changed the process to pass on the snapshot which the authoritative client updates the server onwards to other clients immediately instead and added checks to ensure server only broadcasts when object is on server authority or on host client authority. * Update Assets/Mirror/Components/NetworkTransform2k/NetworkTransformBase.cs * Update Assets/Mirror/Components/NetworkTransform2k/NetworkTransformBase.cs * Update Assets/Mirror/Components/NetworkTransform2k/NetworkTransformBase.cs Co-authored-by: vis2k <info@noobtuts.com> |
||
---|---|---|
.. | ||
Mirror | ||
ScriptTemplates | ||
Mirror.meta | ||
ScriptTemplates.meta |