diff --git a/Runtime/CesiumSimplePlanarEllipsoidCurve.cs b/Runtime/CesiumSimplePlanarEllipsoidCurve.cs index 2354aa20..a68f0aec 100644 --- a/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +++ b/Runtime/CesiumSimplePlanarEllipsoidCurve.cs @@ -8,8 +8,8 @@ namespace CesiumForUnity { /// - /// Describes an ellipsoidal curve that lies on a plane intersecting the center of the earth and - /// both the source and destination points. This curve can be sampled at any point along its length. + /// Describes a curve that's a section of an ellipse that lies on a plane intersecting the center of the earth and + /// both the source and destination points on a WGS84 ellipsoid. This curve can be sampled at any point along its length. /// [ReinteropNativeImplementation("CesiumForUnityNative::CesiumSimplePlanarEllipsoidCurveImpl", "CesiumSimplePlanarEllipsoidCurveImpl.h")] [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")] diff --git a/native~/Runtime/src/CesiumSimplePlanarEllipsoidCurveImpl.cpp b/native~/Runtime/src/CesiumSimplePlanarEllipsoidCurveImpl.cpp index 113892d9..02c4e963 100644 --- a/native~/Runtime/src/CesiumSimplePlanarEllipsoidCurveImpl.cpp +++ b/native~/Runtime/src/CesiumSimplePlanarEllipsoidCurveImpl.cpp @@ -16,12 +16,12 @@ CesiumSimplePlanarEllipsoidCurveImpl::~CesiumSimplePlanarEllipsoidCurveImpl() {} bool CesiumSimplePlanarEllipsoidCurveImpl:: CreateFromEarthCenteredEarthFixedCoordinates( - const DotNet::CesiumForUnity::CesiumSimplePlanarEllipsoidCurve& - path, + const DotNet::CesiumForUnity::CesiumSimplePlanarEllipsoidCurve& path, const DotNet::Unity::Mathematics::double3 sourceEcef, const DotNet::Unity::Mathematics::double3 destinationEcef) { std::optional flightPath = SimplePlanarEllipsoidCurve::fromEarthCenteredEarthFixedCoordinates( + Ellipsoid::WGS84, glm::dvec3(sourceEcef.x, sourceEcef.y, sourceEcef.z), glm::dvec3(destinationEcef.x, destinationEcef.y, destinationEcef.z)); if (!flightPath.has_value()) { @@ -39,6 +39,7 @@ bool CesiumSimplePlanarEllipsoidCurveImpl::CreateFromLongitudeLatitudeHeight( const DotNet::Unity::Mathematics::double3 destinationLlh) { std::optional flightPath = SimplePlanarEllipsoidCurve::fromLongitudeLatitudeHeight( + Ellipsoid::WGS84, Cartographic(sourceLlh.x, sourceLlh.y, sourceLlh.z), Cartographic(destinationLlh.x, destinationLlh.y, destinationLlh.z)); @@ -58,8 +59,7 @@ CesiumSimplePlanarEllipsoidCurveImpl::GetPosition( double additionalHeight) const { assert(this->_curve != nullptr); - glm::dvec3 result = - this->_curve->getPosition(percentage, additionalHeight); + glm::dvec3 result = this->_curve->getPosition(percentage, additionalHeight); return DotNet::Unity::Mathematics::double3::Construct( result.x, diff --git a/native~/extern/cesium-native b/native~/extern/cesium-native index f8616e6c..15ccb3cd 160000 --- a/native~/extern/cesium-native +++ b/native~/extern/cesium-native @@ -1 +1 @@ -Subproject commit f8616e6c654f3c85ddc1edd093e14a628dd3c4ea +Subproject commit 15ccb3cd9e8a710af1789063a799288b5be29fac