if(rigidbody.velocity.magnitude>maxVel) { rigidbody.velocity = rigidbody.velocity.normalized * maxVel;}