test FindRandomPointAroundCircle

This commit is contained in:
ikpil 2023-07-12 00:14:25 +09:00
parent 43cf1c12ba
commit 34e2f9a738
1 changed files with 2 additions and 1 deletions

View File

@ -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())
{