rb velocity magnitude code example Example: rigidbody.velocity.magnitude //speed of rigidbody in m/s float speed = rigidbody.velocity.magnitude;