Dron move VelocityOrientation

Hello

I’m creating a simple simulation in CesiumJS where a drone moves along a path. I’m attempting to implement a method for the drone to ascend vertically by using new Cesium.VelocityOrientationProperty(property) to set the rotational values for the drone

“Is there a way to dynamically alter the headingPitchRollQuaternion value over time?”

https://youtu.be/szYQX0_nrpU
// my code error

function displayCurrentTime() {
var currentTime = viewer.clock.currentTime;

  if(startTime.secondsOfDay+3.1<currentTime.secondsOfDay){
     viewer.clock.onTick.removeEventListener(displayCurrentTime)
     entity.orientation = dron_orientation // new Cesium.VelocityOrientationProperty(property)
  };

}

// Clock
viewer.clock.onTick.addEventListener(displayCurrentTime);

That video does look like it has some strange behavior in it.

Are you able to provide a minimal example of this behavior happening in https://sandcastle.cesium.com/? That would help us reproduce and possibly debug the issue.

I don’t know if this is exactly your use case but this example does show changing the heading/pitch/roll over time Cesium Sandcastle