I have a kill zone at the bottom of my level in my 3D platformer, but when my rolling ball get respawned using `transform.position` I keep my momentum. How do I cancel all momentum after position is overridden?

I've tried looking around already but everyone seems to have asked the question at least 5 years ago, and when I try to change `rigidbody.velocity` or `rigidbody.angularVelocity`, it says 'Component.rigidbody' is obsolete.

Thanks in advance!