cesium 加载图片如何让自动旋转

新手上路,请多包涵

加载图片svg,类似于飞机,想让随着自身旋转
不清楚怎么配置

cesiumModel = (name: string, userId: number, modelUrl: string, position: any, description: 'drone') => {

const modelOptions: any = {
  name: name,
  coordinates: Rectangle.fromDegrees(position[0], position[1], 0),
  orientation: {
    heading: CesiumMath.toRadians(-45.0)
  },
  position: position,
  userId: userId,
  rotation: CesiumMath.toRadians(180),
  stRotation: CesiumMath.toRadians(180),
  shouldAnimate: true,
  billboard: new BillboardGraphics({
    image: new ConstantProperty(cs),
    scale: new ConstantProperty(1)
  }),
  description
}
//延X轴旋转90度,其它轴同理


return entity

}

阅读 1.9k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题