DragControls, TransformControls - move curve points

I found the coordinates of the movable cube
let target = event.target.object.position;

Just inserting it into setXYZ () has no effect.
It is necessary to understand how to work with setXYZ