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

@@ -2254,7 +2254,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
speed: 400
speedIncrement: 0.1
speedIncrement: 20
resetDelay: 1
--- !u!1660057539 &9223372036854775807
SceneRoots:

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()