This commit is contained in:
aozhiwei 2022-12-02 11:32:37 +08:00
parent b74a7709cf
commit ac12bd057d

View File

@ -778,14 +778,17 @@ int MapInstance::FindRandomPointAroundCircle(int layer,
dtPolyRef randomRef = INVALID_NAVMESH_POLYREF; dtPolyRef randomRef = INVALID_NAVMESH_POLYREF;
float randomPt[3]; float randomPt[3];
navmesh_query_->findRandomPointAroundCircle(startRef, dtStatus status = navmesh_query_->findRandomPointAroundCircle
center, (startRef,
max_radius, center,
&filter, max_radius,
frand, &filter,
&randomRef, frand,
randomPt); &randomRef,
randomPt);
if (dtStatusSucceed(status)) {
}
return 0; return 0;
} }