Skip to main content

显示坐标轴

显示坐标轴

2022-11-27 01:19:26

标签: debug
 const position = Cesium.Cartesian3.fromDegrees(-123.0744619,44.0503706,5000);
const hprRollZero = new Cesium.HeadingPitchRoll();
const modelMatrix = Cesium.Transforms.headingPitchRollToFixedFrame(
    position,
    hprRollZero,
    Cesium.Ellipsoid.WGS84,
    Cesium.Transforms.eastNorthUpToFixedFrame
  );
viewer.scene.primitives.add(
    new Cesium.DebugModelMatrixPrimitive({
      modelMatrix: modelMatrix,
      length: 300.0,
      width: 10.0,
    })
  );