TO SQUASH: Jesus!!

This commit is contained in:
2026-08-19 13:18:26 -04:00
parent 1cf68b32a1
commit 24d3297daa
16 changed files with 607 additions and 320 deletions
+3 -1
View File
@@ -33,7 +33,7 @@ public class BasicBall : BallBase
// Update is called once per frame
void FixedUpdate()
{
{
AnimatorStateInfo stateInfo = animator.GetCurrentAnimatorStateInfo(0);
if (stateInfo.IsName("BasicBallMove")) {
@@ -77,6 +77,8 @@ public class BasicBall : BallBase
collision.gameObject.CompareTag("FruitBall") ||
collision.gameObject.CompareTag("Shark"))
{
// Force reset the rotation.
transform.rotation = Quaternion.identity;
ContactPoint2D contact = collision.GetContact(0);
speed = Vector2.Reflect(speed, contact.normal);