unity cancel momentum

Code Example - unity cancel momentum

                
                        Rigidbody rb = GetComponent<RigidBody>();

rb.velocity = Vector3.zero;