Greetings again!
I would like to make eyes look at the mouse cursor. (not the whole head or eyes but only eye pupils)
Like this example:
Should I modify the existing model and add two eye objects in it?
Or maybe can I add two planes for those eyes in the code and make them look at the mouse?
If someone can give me sample code’s url, that would be much appreciated.
Thank you in advance.
Your model has eyeballs, kind of squeezed on Z-axis, so the method with simply lookAt is not suitable in this case
Maybe the raycasting from the point on a plane to centers of eyeballs is worth a try. Getting a point of intersection on an eyeball, move the mesh of a pupil (a sphere, for example) to this point.