实现glb模块旋转
const position = Cesium.Cartesian3.fromDegrees(x, y, height);
const heading = Cesium.Math.toRadians(90);//水平旋转
const pitch = Cesium.Math.toRadians(0.0);
const roll = Cesium.Math.toRadians(0.0);
let headingPitchRoll = new Cesium.HeadingPitchRoll(heading, pitch, roll);
let orientation = Cesium.Transforms.headingPitchRollQuaternion(position, headingPitchRoll),
this.viewer.entities.add({
id:id,
name : url,
position : position,
orientation: orientation,
model : {
uri : url
}
})