@d5techs/3dgs-lib 1.4.46 → 1.4.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/3dgs-lib.js CHANGED
@@ -18928,13 +18928,11 @@ class App {
18928
18928
  const mc = this.controls.modelCenter;
18929
18929
  const mr = this.controls.modelRadius;
18930
18930
  if (mr !== Infinity) {
18931
- const groundY = mc[1] - mr;
18932
- const heightAboveGround = cam[1] - groundY;
18933
18931
  const dx = cam[0] - mc[0];
18934
18932
  const dz = cam[2] - mc[2];
18935
18933
  const hDist = Math.sqrt(dx * dx + dz * dz);
18936
- const raw = Math.atan2(heightAboveGround, Math.max(hDist, 0.01));
18937
- pitchOffset = Math.max(-1.2, Math.min(1.2, raw));
18934
+ const fullAngle = Math.atan2(cam[1], Math.max(hDist, 0.01));
18935
+ pitchOffset = Math.max(-0.5, Math.min(0.5, -fullAngle * 0.35));
18938
18936
  }
18939
18937
  }
18940
18938
  this.skyboxRenderer.prepareFrame(