Made the ball speed up (second computer test)

This commit is contained in:
RochesterX
2025-01-09 11:53:58 -05:00
parent ebc52066ea
commit 8a42932cf2
5 changed files with 77 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ public class PongBallBehavior : MonoBehaviour
public void IncreaseSpeed()
{
rb.AddForce(rb.linearVelocity.normalized * speedIncrement, ForceMode2D.Impulse);
rb.AddForce(rb.linearVelocity.normalized * speedIncrement, ForceMode2D.Force);
}
private IEnumerator Reset()