摘要: dtNavMeshQuery::raycast(dtPolyRef startRef, const float* startPos, const float* endPos, const dtQueryFilter* filter, const unsigned int options, dtRay 阅读全文
posted @ 2018-04-24 16:37 iceberg-liu 阅读(568) 评论(0) 推荐(0) 编辑
摘要: dtIntersectSegmentPoly2D(startPos, endPos, verts, nv, tmin, tmax, segMin, segMax): http://geomalgorithms.com/vector_products.html perp product也就是 2D外积 阅读全文
posted @ 2018-04-24 15:39 iceberg-liu 阅读(741) 评论(0) 推荐(0) 编辑
摘要: dtNavMeshQuery::findLocalNeighbourhood(dtPolyRef startRef, const float* centerPos, const float radius, const dtQueryFilter* filter, dtPolyRef* resultR 阅读全文
posted @ 2018-04-19 15:19 iceberg-liu 阅读(563) 评论(0) 推荐(0) 编辑
摘要: #ifdef POW2_ASSERTS_ENABLED #define POW2_ASSERT(x) \ do { if (!(x)) { pow2::Assert::Fail(#x, __FILE__, __LINE__); } } while(0) #else #define POW2_ASSERT(x) \ do { (void)sizeof(x); } while(0) #endif 阅读全文
posted @ 2018-04-18 09:57 iceberg-liu 阅读(302) 评论(0) 推荐(0) 编辑
摘要: checkPathValidity queryPolygons queryPolygonsInTile process 阅读全文
posted @ 2018-04-17 20:00 iceberg-liu 阅读(555) 评论(0) 推荐(0) 编辑
摘要: dtFindNearestPolyQuery :: process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count):找到最近的点和最近的多边形 For(每一个poly) { 计算m_center跟这个poly的最 阅读全文
posted @ 2018-04-17 11:43 iceberg-liu 阅读(309) 评论(0) 推荐(0) 编辑