Add Function setVelocity with one call