首先babylonjs 相機我們要改造
對于相機改造類圖如下
針對EarthCamera類
const BABYLON =?require('babylonjs');
export?class?EarthCamera?extends?BABYLON.ArcRotateCamera {
constructor(e, t, i, n, r, o, s) {
super(e, t, i, n, r, o),
this.isDirty =?true,
this.diffAlpha =?0,
this.diffBeta =?0,
this.diffRadius =?0,
this.latLonAtmouse =?new BABYLON.Vector2
}
}
針對CameraControl
```javascript
?更多參考?https://xiaozhuanlan.com/topic/2173489065