Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Stay_frostJebel
· 7y ago · 0 comments
Why is pmouseX subtracted from mouseX? And why is pmouseY subtracted from mouseY?
Comments
[–]
ghusbands
7y ago
They'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).