3D模型api操作

移动

threebox.moveToCoordinate(aircraft, planePosition, {'scaleToLatitude': true, 'preScale': 40})

缩放

obj.scale.x = 2,obj.scale.y = 3,obj.scale.z = 4

旋转

obj.rotation.x += 2,obj.rotation.y +=3,obj.rotation.z += 4

位置

var material = new THREE.MeshPhongMaterial( {color: 0x838B8B, side: THREE.DoubleSide});
aircraft = new THREE.Mesh( geometry, material );
planePosition = [118.8386378, 37.0313616 ,1000];

var obj = threebox.addAtCoordinate(aircraft, planePosition, {scaleToLatitude: true, preScale: 40,heading: 130});

原文地址:https://www.cnblogs.com/lilei2blog/p/9686479.html