Here’s the situation:
I need to be able to translate a 2D object (a triangle) around the screen based on where I am dragging the mouse. I can do this just fine, but there is one part that I want to change that I have been having trouble with.
When I click on the object to begin dragging it, the object immediately snaps to a position where the mouse cursor is in the center of the object. I want the object to be dragged from the point I click, not from the center of the object.