cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

An interrupted flight means the next flight will start part way through

Open kring opened this issue 1 year ago • 0 comments

Reported here: https://community.cesium.com/t/about-currentflytotime-in-cesiumflytocontroller/36701

When a CesiumFlyController flight completes, the _currentFlyToTime is reset to zero: https://github.com/CesiumGS/cesium-unity/blob/v1.13.1/Runtime/CesiumFlyToController.cs#L312

But if the flight is interrupted, it is not: https://github.com/CesiumGS/cesium-unity/blob/v1.13.1/Runtime/CesiumFlyToController.cs#L329

Starting a new flight also, surprisingly, does not reset _currentFlyToTime to zero, either. So as a result, an interrupted flight means that the next flight begins at whatever _currentFlyToTime the previous one was interrupted at.

kring avatar Nov 21 '24 02:11 kring