aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/GameController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Controllers/GameController.cs')
-rw-r--r--Assets/Scripts/Controllers/GameController.cs4
1 files changed, 2 insertions, 2 deletions
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);
}
}