diff --git a/src/views/bigScreen/cesiumtest.vue b/src/views/bigScreen/cesiumtest.vue index 861c6f8d..7550eeee 100644 --- a/src/views/bigScreen/cesiumtest.vue +++ b/src/views/bigScreen/cesiumtest.vue @@ -418,8 +418,6 @@ export default { var url = "photon_tree.glb"; var height = 0; viewer.entities.removeAll(); //加载之前先清楚所有entity - // 88.64349, - // 42.72285, var position = Cesium.Cartesian3.fromDegrees( 88.64349, 42.72285, @@ -450,15 +448,18 @@ export default { }, }); var destination_tree = Cesium.Cartesian3.fromDegrees( - 88.64349, - 42.72285, - 900 + 88.64355, + 42.715, + 500 ); - var roll_tree = Cesium.Math.toRadians(-100); - var hpr_tree = new Cesium.HeadingPitchRoll(heading, pitch, roll_tree); - var orientation_camer = Cesium.Transforms.headingPitchRollQuaternion( - destination_tree, - hpr_tree + var heading_tree = Cesium.Math.toRadians(1); // 指定航向角度 + var pitch_tree = Cesium.Math.toRadians(-30); // 俯仰角度 + var roll_tree = Cesium.Math.toRadians(0); // 指定滚转角度 + + var orientation_camer = new Cesium.HeadingPitchRoll( + heading_tree, + pitch_tree, + roll_tree ); viewer.camera.setView({ destination: destination_tree,