Can flyTo be bound to clock?

1. A concise explanation of the problem you’re experiencing.

I spend five seconds fly to the target, at sixth seconds, the target has animation and the animation is only one second. if I let clock speed up, I will miss an animation because of the fly still cost five seconds.the five seconds is fact time, not clock time

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

1.对您遇到的问题的简要解释。

2.一个最小的代码示例。如果您发现了错误,这有助于我们重现并修复它。

3.背景。你为什么需要这样做?我们可能知道更好的方法来实现您的目标。

4.您正在使用的Cesium版本,您的操作系统和浏览器。

It looks like there’s nothing built-in to do this, but this does sound very useful. I think what you’d need to do as a workaround is create a SampledPositionProperty:

https://cesiumjs.org/Cesium/Build/Documentation/SampledPositionProperty.html

That has the positions all along the flight path, and then create an onTick event, so that every frame you get the position from the sampled property and set the camera’s position to that.

You can actually see where the camera computes its tween here:

https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/Camera.js#L2860

Although it might not be very straightforward to take that and create a sampledpositionproperty out of it.

I opened an issue with some more thoughts here https://github.com/AnalyticalGraphicsInc/cesium/issues/7657

Ťhanks.I try it.

209年3月16日星期六下午6:10:59 UTC + 8,Omar Shehata写道: