reset rb.velocity = direction * speed; after collision

i’m trying to figure out how to reset rb.velocity = direction * speed with this script:
as it stands my ball keeps getting faster and faster until the game resets

{

public AudioSource score;

public IEnumerator OnTriggerEnter2D (Collider2D Other)
{
    if(Other.gameObject.tag == "Goal")
    {
        score.Play();
        yield return new WaitForSeconds(1f);
        transform.position = new Vector2 (0, 0);
        
    }
}

}

rb.velocity = vector3.zero

is that what you mean? I’m unclear on what you are asking for

you may also mean that you should have some sort of limit to what speed you can have?

[SerializeField] float maxSpeed = 1;

if(rb.velocity > maxSpeed )
  rb.velocity = maxSpeed ;