diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-12 20:19:00 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-12 20:19:00 -0400 |
commit | 585e0ebbd768eb3955c3bad19ef425bdf6657f8f (patch) | |
tree | d378e65221353e0c9b4c60f648955bc2685139e5 /Assets/Scripts/Controllers/Ball.cs | |
parent | ca2356eb3f3c88745d5ecc646383f49ff301be90 (diff) | |
download | gmtk-gamejam-585e0ebbd768eb3955c3bad19ef425bdf6657f8f.tar.gz gmtk-gamejam-585e0ebbd768eb3955c3bad19ef425bdf6657f8f.tar.zst gmtk-gamejam-585e0ebbd768eb3955c3bad19ef425bdf6657f8f.zip |
Refine AI decision-making
Diffstat (limited to 'Assets/Scripts/Controllers/Ball.cs')
-rw-r--r-- | Assets/Scripts/Controllers/Ball.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/Ball.cs b/Assets/Scripts/Controllers/Ball.cs index d9c85c2..07e1b37 100644 --- a/Assets/Scripts/Controllers/Ball.cs +++ b/Assets/Scripts/Controllers/Ball.cs @@ -22,7 +22,7 @@ namespace Controllers public void Shoot(Vector3 target) { - transform.right = (target - transform.position); + transform.right = target - transform.position; Rigidbody.velocity = Vector2.zero; Rigidbody.AddForce((transform.right + (transform.up * 0.5f)) * shotForce); } |