We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm using the difference between pmouseX/Y and mouseX/Y to determine the initial drag angle. I'm getting a lot of false drag angles because of a high(ish) frame rate (60fps) and the vagaries of mousing (?). Any idea how I can make it more reliable?
Answers
I've got this online example which uses pmouseX + mouseMoved():
http://Bl.ocks.org/GoSubRoutine/a117ecb16a8b0f939a190f87d3a13267
However, it also uses noLoop(). And when it's commented out, the 3D cube stops working. :-S
I solved this by increasing the interval between recording the mouse position and the dragging threshold. Seems kind of obvious now... oops!
Sorry GoToLoop, I didn't see your response before I commented. Thanks for taking the time!