unity velocity magnitude code example
Example 1: how to get rigidbody speed in unity
var speed = rigidbody.velocity.magnitude;
Example 2: rigidbody.velocity.magnitude
//speed of rigidbody in m/s
float speed = rigidbody.velocity.magnitude;
var speed = rigidbody.velocity.magnitude;
//speed of rigidbody in m/s
float speed = rigidbody.velocity.magnitude;