Forum

Focus on Object

08 October 2015 19:21
I wanted to know if it is possible to focus a scenes Eye camera on an object, with an object name. I understand how to get the obj from the scene using "get_object_by_name", but once i have that objext how do i focus my camera on it?
08 October 2015 21:24
Hello and welcome!
I wanted to know if it is possible to focus a scenes Eye camera on an object, with an object name. I understand how to get the obj from the scene using "get_object_by_name", but once i have that objext how do i focus my camera on it?
This can be done using the camera.set_look_at() method. You might retrieve the object's position and use it as a target.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.