6 ms·
Why is pmouseX subtracted from mouseX? And why is pmouseY subtracted from mouseY?
by Stay_frostJebel 7y ago
Why is pmouseX subtracted from mouseX? And why is pmouseY subtracted from mouseY?
- ghusbands 7y agoThey're using the difference in mouseX (or mouseY) to dictate the amount to rotate the object. To do that, you subtract it from the previous one (mouseX-pmouseX).