rigidbody.velocity.magnitude code example
Example 1: how to get rigidbody speed in unity
var speed = rigidbody.velocity.magnitude;
Example 2: rigidbody velocity
rb.velocity = new Vector3(0, 10, 0);
Example 3: rigidbody.velocity.magnitude
//speed of rigidbody in m/s
float speed = rigidbody.velocity.magnitude;