请参考相机漫游教程:
https://www.bilibili.com/video/BV1ZZ4y1r7NZ/?vd_source=c87127823fed1432c6beb247fb409e70
dimensions: new Cesium.Cartesian2(400, 300)你理解清楚这个了就知道能不能平行地面了。 plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Z)这个可以控制平面朝向
转发:
let entityPlane = new Cesium.Entity({
id: "entityScanGround",
name: "entityScanGround",
position: Cesium.Cartesian3.fromDegrees(112.6471429, 38.0090505, 20),
plane: {
plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0.0),
dimensions: new Cesium.Cartesian2(400, 300),
material: Cesium.Color.YELLOW,
},
});
let planeGeom = window.viewer.entities.add(entityPlane);
window.viewer.zoomTo(planeGeom);
viewer.trackedEntity = viewer.entities.getById("entityScanGround");