Page 1 of 1

Javascript API to control Zoom IN/OUT

Posted: Fri Jul 30, 2021 9:36 am
by NishantA23
Hello,

Is there a Javascript API that helps to Zoom IN/OUT of an Object2VR scene ? Kindly help if it's available.

Re: Javascript API to control Zoom IN/OUT

Posted: Fri Jul 30, 2021 6:56 pm
by Hopki
Hi,
Please see this page for Object2VR API calls: https://ggnome.com/wiki/javascript-api-object2vr/
But for zoom you can use:

Code: Select all

obj.getFov
and

Code: Select all

obj.setFov
to set the zoom factor in percent.
Regards,