1
This commit is contained in:
parent
b74a7709cf
commit
ac12bd057d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user