在线部署后跑着服务器上坐标拾取有问题,坐标获取的不准确,在线开发的时候是正常的,屏幕坐标转世界坐标,ev.pickPosition 这两个获取的未知都不准确- app.on('click', function (ev) {
 
 -     if (ev.button == 2) {
 
 -         // 屏幕坐标
 
 -         let screenPosition = [ev.clientX, ev.clientY]
 
 -         // 世界坐标
 
 -         let worldPosition = app.camera.screenToWorld(ev.clientX, ev.clientY)
 
 -         worldPosition[1] = 2
 
 -         globalMethods.openRightMenu(screenPosition, worldPosition)
 
  
-     }
 
 - })
 
  复制代码 场景加载代码如下 
- var app = new THING.App(/**/{
 
 -     // url: '/api/scene/58af18d4e54718f3dfb257a0', // 残缺的 小体积
 
 -     // url: '/api/scene/71eb99b5017d491d08713aa9', // 完整的 大体积
 
 -     url: './scene/2/', // online
 
 -     background: basePreFix + '/uploads/wechat/1113910/file/VehicleBaseDigitalTwin3DVisualizationSystem/index/src/img/background.png'
 
 - });
 
 
  复制代码 
 
 |   
 
 
 
 | 
| 
 | 
| 
 | 
| 
 | 
 |