I want to rotate the model to match the GPX log

I would like to rotate the model to match the GPX log.
I currently have a program that displays the model according to the GPS log, but I don’t know how to rotate the model along the trajectory.
I have attached the code. If anyone has any ideas, please let me know.

    const pinBuilder = new Cesium.PinBuilder();
    Cesium.Ion.defaultAccessToken = 'key';
    const viewer = new Cesium.Viewer("cesium", {
    terrainProvider: new Cesium.CesiumTerrainProvider({
        url: Cesium.IonResource.fromAssetId(1),       
    baseLayerPicker: true,
    geocoder: false,
    homeButton: false,
    shouldAnimate: true,

  let activeDataSource;

    waypointImage: pinBuilder.fromUrl(
  .then(function (dataSource) {
    activeDataSource = dataSource;
      const entity = activeDataSource.entities._entities._array[0]; 
      const entity_01 = viewer.entities.add({
        position: entity.position,
        model: {
          uri: "../model/model.glb",
          minimumPixelSize: 70,
          maximumScale: 50,
    viewer.trackedEntity = entity_01;

Hello there,

I think you’ll want to use a VelocityOrientationProperty, as demonstrated in this example.