forked from bit/DotRecastNetSim
test FindRandomPointAroundCircle
This commit is contained in:
parent
43cf1c12ba
commit
34e2f9a738
|
@ -350,9 +350,10 @@ public class TestNavmeshTool : IRcTool
|
|||
? StrictPolygonByCircleConstraint.Strict
|
||||
: NoOpPolygonByCircleConstraint.Noop;
|
||||
|
||||
var frand = new FRand();
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
var status = m_navQuery.FindRandomPointAroundCircle(m_startRef, m_spos, dist, m_filter, new FRand(), constraint,
|
||||
var status = m_navQuery.FindRandomPointAroundCircle(m_startRef, m_spos, dist, m_filter, frand, constraint,
|
||||
out var randomRef, out var randomPt);
|
||||
if (status.Succeeded())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue