Avoid using client-only setVelocity, but set it manually, close #1722.