// Cesium.when(pickedFeature.primitive.readyPromise).then(function (
// modle
// ) {
// let ss = modle.activeAnimations.addAll({
// loop: Cesium.ModelAnimationLoop.REPEAT,
// removeOnStop: true,
// });
// ss.stop.addEventListener(function (model, animation) {
// debugger
// console.log("Animation stopped: " + animation.name);
// });
// }); //骨骼动画自动在播放设置
// Cesium.when(modle.readyPromise).then(function (modle) {
// modle.activeAnimations.addAll({
// loop: Cesium.ModelAnimationLoop.REPEAT,
// });
// });//骨骼动画自动在播放设置
var entity = viewer.entities.add({
id:"inspectperson",
availability: new Cesium.TimeIntervalCollection([
new Cesium.TimeInterval({
start:startTime,
stop:stopTime
})
]),
position: property,
orientation:new Cesium.VelocityOrientationProperty(property),
model: {
uri: modelParams.Data_Service+"/gqmodels/xingzou.glb",
scale:3,
runAnimations:true,
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 60000000)
},
});