Repair speed down

This commit is contained in:
haitem 2022-01-29 15:41:54 +01:00
parent 6d7f20fc6e
commit 9c2e253a74

View File

@ -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;