From 9c2e253a745e7db5ba81cb81f60a48229cb671be Mon Sep 17 00:00:00 2001 From: haitem Date: Sat, 29 Jan 2022 15:41:54 +0100 Subject: [PATCH] Repair speed down --- Assets/Scripts/PlayerController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 38ec3d6..f5c1650 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -165,7 +165,7 @@ public class PlayerController : MonoBehaviour rb.AddForce(other.transform.forward * platform.speed * Time.deltaTime, ForceMode.Impulse); break; case PlatformManager.PlatformType.SpeedDown: - rb.AddForce(other.transform.forward * platform.speed * 10 * Time.deltaTime, ForceMode.Impulse); + rb.AddForce(-other.transform.forward * platform.speed * Time.deltaTime, ForceMode.Impulse); break; default: gDirection = -transform.up;