GeodeticPivotPtr pivot = GeodeticPivot::cast(Editor::get()->getNodeByName("GeodeticPivot"));
pivot->setOrigin(Vec3(0, 90, 0));
EllipsoidPtr e = pivot->getEllipsoid();
Mat4 mat = e->getENUWorldTransform(pivot->getOrigin());
Vec3 pp = mat.getTranslate();
mat = e->getNEDWorldTransform(pivot->getOrigin());
Vec3 pp1 = mat.getTranslate(); //pp1 == pp
Vec3 v = e->toGeodetic(pp1,1); //if origin ==Vec3(0, 0, 0) pp1 = Vec3(6378137,0,0) if origin ==Vec3(0, 90, 0) pp1 = pp1 =(-0.27879723389230870,6378136.9999999935,0) so get the earth center
double l0 = e->getSemimajorAxis();//l0 = 6378137.0000000000 长轴
double l1 = e->getSemiminorAxis(); //l1 = 6356752.3142451793 短轴
将当前位置减去球心坐标可以作为当前的重力方向。