Closed chrisella closed 5 years ago
A while ago I added the drag offset bits so it would drag from where the mouse clicked, rather than snap to the center of the sprite, but this doesn't seem to work properly if there is rotation applied to the object.
Scale seems to affect this also
It turns out it wasn't rotation at-all, only scale had an effect on this so to fix I just apply the scale to the local offset gathered at drag start.
A while ago I added the drag offset bits so it would drag from where the mouse clicked, rather than snap to the center of the sprite, but this doesn't seem to work properly if there is rotation applied to the object.