Skip to main content

Cesium 控制Entity 模型旋转

根据heading、pitch、roll 旋转模型

//旋转模型
function modelRotate(model, position, heading,pitch,roll) { 
    let angle_ = Cesium.Math.toRadians(angle);
    model.orientation = Cesium.Transforms.headingPitchRollQuaternion(position.getValue(start), new Cesium.HeadingPitchRoll(heading,pitch,roll));
} 

注册VIP

如果已经是VIP,请直接登陆 登陆

发表回复