CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
347 stars 83 forks source link

Use rotation from globe anchor in CesiumFlyToController #429

Closed azrogers closed 6 months ago

azrogers commented 6 months ago

Something that got overlooked in changing CesiumFlyToController to be able to use a parent CesiumGlobeAnchor. Instead of using the local transform, we want to use the rotation of whatever transform the CesiumGlobeAnchor is attached to for the source rotation on our flight, since this is the object that the rotation is going to be applied to as it flies.

j9liu commented 6 months ago

Sorry for the very late, completely out-of-context post, but what was the reason for the change to use a parent? Is there a reason you can't use a CesiumFlyToController on a parent object? In other words, why would a parent be anchored, when the child object would be the one flying?

j9liu commented 6 months ago

Ignore the above. We talked about this offline and I opened https://github.com/CesiumGS/cesium-unity/issues/434 for it.