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);