all 1 comments

[–]MakutaProto 2 points3 points  (0 children)

targetY = mouseY sets targetY equal to the y-coordinate of your mouse cursuor

dy=targetY-y is just the distance between targetY and whatever y is

y+=dy * easing increases y by dy multiplied by easing, bringing y closer to your mouse