Hi,
thanks for your initiative. I would rename it so that it's clear its targeting a Rigidbody.
Typically, you would set the velocity on fixedUpdate, but you would clamp on late update. But if you have no jitters when clamped, leave it like this. Double check when external forces are acting upon your RB. typically if a collider is pushing it, or if you add a force manually.
When you reach a version you are satisfied, I'll put it on the ecosystem.
Bye,
Jean