Ok, I’ve created a
TargetedDragHandler which translates the drag to some other spatial (target) than the one being captured by the mouse.
When working on this I’ve noticed something that looks like a bug in the original
basePotition = capture.getWorldTranslation().clone() in
startDrag() should probably instead be
basePosition = capture.getLocalTranslation().clone() because everywhere else the handler is working with the local translation and getting the world translation here introduces an abnormal initial offset on drag start if the spatial is a child of some other spatial and its relative location is not
0, 0, 0. Please check this?
And also, I have noticed that the version of Lemur in the repo is somewhat really ahead of the last released one: like, the demos from there, including the
DragHandler one, don’t work with the latest release, failing with many compilation errors. So in order to have everything working and according to the demos, I had to rely on the source version, which in turn, makes me to ask you to not forget and consider updating the release version since there’s pretty much update accumulated already Idk when you feel it to be the appropriate moment though, mabye there’s some milestone in the plan…