In the callback property, the same value is obtained using VelocityOrientationProperty(). getValue, but when VelocityOrientationProperty() is used alone, it changes from time to time。
I want to rotate a model first, and then let it apply VelocityOrientationProperty
function getori(time, result) {
let r = new Cesium.HeadingPitchRoll(
Cesium.Math.toRadians(0),
Cesium.Math.toRadians(0),
Cesium.Math.toRadians(180)
);
var r1 = new Cesium.Quaternion.fromHeadingPitchRoll(r)
var rwx = new Cesium.VelocityOrientationProperty(computeFlight(data_wx, 1)).getValue(viewer.clock.currentTime)
var rwx1 = new Cesium.HeadingPitchRoll.fromQuaternion(rwx)
let hpr = new Cesium.HeadingPitchRoll(
rwx1.heading,
rwx1.pitch,
r.roll + rwx1.roll,
)
return rwx
}
The return value is rwx, so I found that rwx is a fixed value.