From c65c617e2031aa6ece4fa6831891fcf1e13662d4 Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Sun, 13 Jun 2021 08:51:14 -0400 Subject: Fix animations, and improve helptext --- Assets/Scripts/Controllers/GameController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Assets/Scripts/Controllers/GameController.cs') diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs index 926238a..c9cb0ce 100644 --- a/Assets/Scripts/Controllers/GameController.cs +++ b/Assets/Scripts/Controllers/GameController.cs @@ -90,7 +90,7 @@ namespace Controllers freezeMotion = false; startTime = Time.time; - ball.Rigidbody.velocity = new Vector2(0, 5f); + ball.Rigidbody.velocity = new Vector2(0, 10f); } private void Update() @@ -102,7 +102,7 @@ namespace Controllers { if (player.HasBall || enemy.HasBall) { - ball.transform.position = ballTarget - new Vector3(0, Mathf.Sin(Time.time * dribbleHeight * dribbleSpeed) + 1f, 0); + ball.transform.position = ballTarget - new Vector3(0, (Mathf.Sin(Time.time * dribbleSpeed) + 1f) * (ballTarget.y - 0.75f) * dribbleHeight, 0); } } -- cgit v1.2.3-56-ge451