Fix spawn accounting for ping

This commit is contained in:
Lncvrt committed 2026-03-05 12:46:53 -07:00
1 parent d93af8848e
commit 89e8317590
1 file changed
+1 -1
@@ -483,7 +483,7 @@ public class MultiplayerGamePlayer : MonoBehaviour {
float delayMs = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() - berry.Timestamp;
float spawnY = (canvasRect.rect.height / 2) + newBerry.rectTransform.rect.height;
float distanceTraveled = 200f / 1000f * delayMs;
float distanceTraveled = 200f * canvasRect.lossyScale.y / 1000f * delayMs;
float y = spawnY - distanceTraveled;
float bottomEdge = -(canvasRect.rect.height / 2) - newBerry.rectTransform.rect.height;