X-Git-Url: https://git.cameronkatri.com/gmtk-gamejam.git/blobdiff_plain/ca2356eb3f3c88745d5ecc646383f49ff301be90..585e0ebbd768eb3955c3bad19ef425bdf6657f8f:/Assets/Scripts/Controllers/Ball.cs 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); }