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
|
? StrictPolygonByCircleConstraint.Strict
|
||||||
: NoOpPolygonByCircleConstraint.Noop;
|
: NoOpPolygonByCircleConstraint.Noop;
|
||||||
|
|
||||||
|
var frand = new FRand();
|
||||||
for (int i = 0; i < 200; i++)
|
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);
|
out var randomRef, out var randomPt);
|
||||||
if (status.Succeeded())
|
if (status.Succeeded())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue