@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.cjs CHANGED
@@ -18930,13 +18930,11 @@ class App {
18930
18930
  const mc = this.controls.modelCenter;
18931
18931
  const mr = this.controls.modelRadius;
18932
18932
  if (mr !== Infinity) {
18933
- const groundY = mc[1] - mr;
18934
- const heightAboveGround = cam[1] - groundY;
18935
18933
  const dx = cam[0] - mc[0];
18936
18934
  const dz = cam[2] - mc[2];
18937
18935
  const hDist = Math.sqrt(dx * dx + dz * dz);
18938
- const raw = Math.atan2(heightAboveGround, Math.max(hDist, 0.01));
18939
- pitchOffset = Math.max(-1.2, Math.min(1.2, raw));
18936
+ const fullAngle = Math.atan2(cam[1], Math.max(hDist, 0.01));
18937
+ pitchOffset = Math.max(-0.5, Math.min(0.5, -fullAngle * 0.35));
18940
18938
  }
18941
18939
  }
18942
18940
  this.skyboxRenderer.prepareFrame(