dtNavMeshQuery::raycast(dtPolyRef startRef, const float* startPos, const float* endPos, const dtQueryFilter* filter, const unsigned int options, dtRaycastHit* hit, dtPolyRef prevRef): 做2D的检测,忽略y轴 1 先让curRef = startRef; 2 while (curRef) { 3 在curRef上进行…