get velocity of rigidbody unity code example
Example 1: unity get velocity of gameobject
Rigidbody rb = GetComponent<Rigidbody>();
rb.velocity; // Velocity of gameObject (Vector3)
Example 2: rigidbody velocity
rb.velocity = new Vector3(0, 10, 0);