Fix player jitter on moving platforms

This commit is contained in:
2026-03-17 22:28:39 +01:00
parent 0355b049ff
commit 758a1d420c
22 changed files with 2351 additions and 603 deletions

View File

@@ -10,10 +10,10 @@ public class Springboard : MonoBehaviour
void OnTriggerEnter(Collider col)
{
if (Player.Owner && col.gameObject == Player.Owner.gameObject)
if (Player.Instance && col.gameObject == Player.Instance.gameObject)
{
Debug.Log("Player triggered springboard");
Player.Owner.AddExtraForce(Vector3.up * _force, true, _duration, _curve);
//Player.Instance.AddExtraForce(transform.up * _force, true, _duration, _curve);
_onJump?.Invoke();
}
}