set velocity to 0 unity code example
Example 1: unity how to set rigidbody velocity
Vector3 velocity = new Vector3(10f/*x*/, 10f/*y*/, 10f/*z*/);
GetComponent<Rigidbody>().velocity = velocity;
Example 2: unity get velocity at point
Rigidbody rb = gameObject.GetComponent<Rigidbody>();
//Returns the velocity at local position 'pos'
rb.GetPointVelocity(transform.TransformPoint(pos));