Skip to content

Commit

Permalink
Merge pull request #429 from CesiumGS/use-globe-anchor-rotation
Browse files Browse the repository at this point in the history
Use rotation from globe anchor in CesiumFlyToController
  • Loading branch information
j9liu authored Mar 19, 2024
2 parents b55952d + a185bd5 commit e8b53a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/CesiumFlyToController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void ComputeFlightPath(
{
// The source and destination rotations are expressed in East-Up-North coordinates.
pitchAtDestination = Mathf.Clamp(pitchAtDestination, -89.99f, 89.99f);
this._sourceRotation = this.transform.rotation;
this._sourceRotation = this._globeAnchor.transform.rotation;
this._destinationRotation = Quaternion.Euler(pitchAtDestination, yawAtDestination, 0.0f);
this._destinationECEF = destinationECEF;

Expand Down

0 comments on commit e8b53a3

Please sign in to comment.