Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

rotating eyes towards the camera

$
0
0

Right now I am trying to figure out how to make my character's eyes rotate and orient towards a camera. I am attaching my babylon file to this, but what I am hoping to do is create a lookAt function for the eyes. 

 

Is there an easy way that I can set the local rotation for the eyes so that they follow the camera, or any object in 3d space? The pivot point of the eyes is in the center of the eyes so they should rotate without a problem. I realize that the idea of the forum is to contribute to the solution as well, but I am a little lost as to where to start. 

 

Is there some information on the web that can help as well?

 

Thanks. 

 

I attached the babylon file in case anyone wanted it. 

Attached File  content.zip   9.83MB   0 downloads

 

 

 

 

 


Viewing all articles
Browse latest Browse all 388

Trending Articles