PointerDragBehavior with offset

Is it possible to apply custom offset to the mesh dragged with PointerDragBehavior?
Currently the mesh is dragged from the point where the click started. I would like to offset the dragging point so to have the mesh dragged from its origin (mesh.position)

Thank you

adding @Cedric

Hi @vinz

I’m not sure to understand.
PointerDragBehavior always modify the mesh position it’s attached to in relative mode.
It’s always an offset that’s added to the mesh current position.
If, for some reason you want to change the mesh position when the drag start, then you can do it like in this example:


1 Like

thank you @Cedric

I found my answer in this thread
Modified PG from @Pryme8

This is what I am after, dragging a mesh from its origin