When my Player respawns, it does not stop moving (it's a ball).

Hi All!
How can I do so when my respawns character stops moving, I have teleported after a fall and the character goes ahead (the Player is a Ball).

public Transform respawnTarget;
public GameObject thePlayer;
void OnTriggerEnter(Collider other)
{
    thePlayer.transform.position = respawnTarget.position;
}

You can set zero angular velocity in rigidbody when teleport ball.

Rigidbody ballRigidbody = GetComponent<Rigidbody>();
ballRigidbody.angularVelocity = 0;