好像设置个高度就解决了2333333
好像设置个高度就解决了2333333
大概解决了,就是先旋转再移动,移动的距离大概如下,l是圆锥的长度:
    let offset = new Cesium.Cartesian3(
      l/2 * Math.sin(pitch) * Math.cos(heading),
      -l/2 * Math.sin(heading) * Math.sin(pitch),
      0,
    );
    let enuTransform = Cesium.Transforms.eastNorthUpToFixedFrame(yz_position);
    Cesium.Matrix4.multiplyByPointAsVector(enuTransform, offset, offset);
    entity_yz.position = new Cesium.CallbackProperty(function () {
      return Cesium.Cartesian3.add(yz_position, offset, new Cesium.Cartesian3())
    }, false);
    entity_yz.orientation = new Cesium.CallbackProperty(function () {
      return Cesium.Transforms.headingPitchRollQuaternion(yz_position, hpr_yz)
    }, false);
问 cesium中走廊实体宽度太宽出现填充不满的现象