I have rigged cartoon looking character. In the eyes there is one bone for each eye. Pivot point is in the middle of the eyeball and the iris moves when I rotate the bone.
Is it possible to make a script (I write with javascript) that would move the “eye-bones” towards the player? That way it would look like the character is following player with his eyes.
I finally got it working. Like you said the problem was with the forward direction.
Here’s the result with the game-character called Kispi. He has 8 eyes in total.
Next I quess I have to make a trigger that makes the eyes follow only when player is in front of the character. Since now the iris moves un-naturaly 360 degrees. But this was a big step forward for me and this should work when animated.
I didn’t even think of blinking. All these “small things” like eyes following and blinking makes the illusion of lifelikeness of the character more effect. And the eyes are important anyway because you look at them. I will work on that next.
I quess one way of doing the blinking is to change the texture of eyeball to skincolor (and hide the rendering of iris) for a second once in a while.