From 12300a1472e510caa86d7e097683eccbc0b5634c Mon Sep 17 00:00:00 2001 From: mischa Date: Thu, 4 Apr 2024 00:20:23 +0800 Subject: [PATCH] fix stacked --- Assets/Mirror/Examples/StackedPrediction/PlayerForce.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Examples/StackedPrediction/PlayerForce.cs b/Assets/Mirror/Examples/StackedPrediction/PlayerForce.cs index f68d6c371..ff733d164 100644 --- a/Assets/Mirror/Examples/StackedPrediction/PlayerForce.cs +++ b/Assets/Mirror/Examples/StackedPrediction/PlayerForce.cs @@ -26,7 +26,7 @@ void Update() // apply force in a random direction, this looks best Debug.Log($"Applying force to: {hit.collider.name}"); Vector3 impulse = Random.insideUnitSphere * force; - predicted.predictedRigidbody.AddForce(impulse, ForceMode.Impulse); + predicted.AddPredictedForce(impulse, ForceMode.Impulse); CmdApplyForce(predicted.netIdentity, impulse); } }