this is working alright… but im having this problem:
when i click… it brings the origin of the object straight to the mouse… i want to be able to just drag the object around the scene… all help would be lovely!
-Ross
You’ll have to calculate an offset on the first frame of the drag by subtracting the result of ScreenToWorldPoint from the object’s original position. Once you have the offset, you then subtract that offset from the ScreenToWorldPoint before you assign it back to the object’s position.