CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
902 stars 287 forks source link

Fix jump at end of flights. #1333

Closed kring closed 7 months ago

kring commented 7 months ago

Fixes #1332

I wrote in the linked issue that I didn't think it was worth fixing the problem, versus porting the flight code from CesiumJS. But then I realized the fix is really easy: just scale the positions to the ellipsoid before computing the start and end directions. So here it is.

csciguy8 commented 7 months ago

Thanks @kring !

Reviewed and tested out in 2 cesium-unreal-samples levels (sublevels, google tile).

Merging...