fix(unity): seed the server position from the spawn point

This commit is contained in:
Rudy Celekli
2026-10-18 09:31:11 -04:00
parent 652b2692f8
commit 33806e6722
@@ -115,6 +115,8 @@ public class PlayerController : NetworkBehaviour
public override void OnNetworkSpawn()
{
// Seed the authoritative position from the spawn point, not Vector3.zero
if (IsServer) _serverPosition.Value = transform.position;
if (!IsOwner) return;
_clientPredictedPosition = transform.position;
}