Currently, the CesiumCameraController and CesiumFlyToController expect to be on an object with a CesiumOriginShift and CesiumGlobeAnchor present. This makes it difficult to setup on XR rigs, as detailed in the issue above. This changes both classes to use CesiumGlobeAnchor components present on parent objects, while using the Reset event to still create an anchor if none is present, as was the previous behavior.
Closes #415.
Currently, the
CesiumCameraController
andCesiumFlyToController
expect to be on an object with aCesiumOriginShift
andCesiumGlobeAnchor
present. This makes it difficult to setup on XR rigs, as detailed in the issue above. This changes both classes to useCesiumGlobeAnchor
components present on parent objects, while using theReset
event to still create an anchor if none is present, as was the previous behavior.