how to measure the velocity of a rigid body in unity code example Example: how to get rigidbody speed in unity var speed = rigidbody.velocity.magnitude;