Skip to content

Commit

Permalink
Make constructor private
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Jan 30, 2024
1 parent cf9b523 commit ccf96b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Runtime/CesiumGlobeFlightPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public static CesiumGlobeFlightPath FromLongituteLatitudeHeight(double3 sourceLl
private partial bool CreateFromEarthCenteredEarthFixedCoordinates(double3 sourceEcef, double3 destinationEcef);
private partial bool CreateFromLongitudeLatitudeHeight(double3 sourceLlh, double3 destinationLlh);
private partial double GetLength();

private CesiumGlobeFlightPath()
{
CreateImplementation();
}
#endregion
}
}
2 changes: 1 addition & 1 deletion Runtime/ConfigureReinterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Cesium3DTilesetLoadFailureDetails tilesetDetails
CesiumGlobeAnchor globeAnchor = globeAnchors[globeAnchors.Length - 1];
globeAnchor.positionGlobeFixed = globeAnchor.positionGlobeFixed;

CesiumGlobeFlightPath globeFlightPath = new CesiumGlobeFlightPath();
CesiumGlobeFlightPath globeFlightPath = CesiumGlobeFlightPath.FromEarthCenteredEarthFixedCoordinates(new double3(0, 0, 0), new double3(0, 0, 0));

globeAnchor = go.AddComponent<CesiumGlobeAnchor>();
globeAnchor.detectTransformChanges = globeAnchor.detectTransformChanges;
Expand Down

0 comments on commit ccf96b2

Please sign in to comment.