DragOrigin in z

Hi, I have a plane constraint, and when I click the top part of my object, it moves upward instead of moving from that point.

Could you please share an example page or explain how you define the objects that need to be dragged and their snapping constraints?

Hello @MUEBLES_TORGA_SL,

you can resolve this by setting a dragOrigin for objects. This position is in the local coordinate space of the object, and setting it to [0,0,0] will result in the desired behavior!

const interactionData = new InteractionData({drag: true});
interactionData.dragOrigin = [0,0,0];

Cheers, Michael

Hello @MajorMeerkatThe3rd ,

Yes, but if I click in the middle of the object it goes up and moves from 0,0,0 and not from where I click. This can be done so that you can move it from where you click

Hello @MUEBLES_TORGA_SL,

can you provide a minimal example so that we can reproduce this issue?

Cheers, Michael

Hello @MUEBLES_TORGA_SL,

are you still facing this issue or has it been resolved for you by now?

If you are still facing this issue, please let us know by providing a minimal example for us to reproduce it.

Cheers, Michael

Good morning, I’ve already solved it.

Thank you very much.

Cheers