Specifically, I'm trying to have a character whose eyes follow the cursor. I have the pupils as separate objects laid over the eye whites, and I want to achieve the effect of the eyes darting around by having the pupils move toward the mouse cursor but not past the edge of the eyes.
I was almost able to get the effect I want by pinning the pupils rope-style to the centers of the eyes and lerping them toward the cursor but that wasn't as dynamic as I need it to be, since the eyes aren't perfect circles and it doesn't hold up if the character changes size.
Does anyone have advice?