Hi I am having some problems trying to get orbit controls to zoom in
I have tried a few solutions but non seem to work
what I have tried:
Adding
this.dIn = dollyIn;
in OrbitControls.js to make global scope and calling it - didn’t work.
Adding this to OrbitControls.js:
this.dollyIn = function () {
dollyIn( getZoomScale() );
scope.update();
};
this.dollyOut = function () {
dollyOut( getZoomScale() );
scope.update();
};
and calling it with: controls.dollyIn(4);
this kind of worked it did zoom but when changing (4) to for example (15) the zoom remained the same and it was more of a zoom out rather than a zoom in
I’ve tried a couple other things they all didn’t work either is there a reliable way of creating a zoom with orbital controls?
Thanks in Advance