aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/Ball.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-12 14:20:38 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-12 14:20:38 -0400
commit175345523527fca2e2878ccea1e1be391c778986 (patch)
tree62312d01c45b70e848aa42d47ba729ed5f5c1d9a /Assets/Scripts/Controllers/Ball.cs
parentfd0078b03f3cee926ad77532ec57b25bf5d02240 (diff)
downloadgmtk-gamejam-175345523527fca2e2878ccea1e1be391c778986.tar.gz
gmtk-gamejam-175345523527fca2e2878ccea1e1be391c778986.tar.zst
gmtk-gamejam-175345523527fca2e2878ccea1e1be391c778986.zip
Add movement to limbs
Diffstat (limited to 'Assets/Scripts/Controllers/Ball.cs')
-rw-r--r--Assets/Scripts/Controllers/Ball.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/Ball.cs b/Assets/Scripts/Controllers/Ball.cs
index b63c928..b09b1be 100644
--- a/Assets/Scripts/Controllers/Ball.cs
+++ b/Assets/Scripts/Controllers/Ball.cs
@@ -18,7 +18,7 @@ namespace Controllers
public void Shoot(Transform playerTransform)
{
- GetComponent<Rigidbody2D>().AddForce((Vector2)(playerTransform.forward + playerTransform.up) * shotForce);
+ GetComponent<Rigidbody2D>().AddForce((Vector2)(playerTransform.right + playerTransform.up) * shotForce);
}
}
}