From 34e2f9a73811c809dea3df08cff8c88a9fbfc9ec Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 12 Jul 2023 00:14:25 +0900 Subject: [PATCH] test FindRandomPointAroundCircle --- src/DotRecast.Recast.Demo/Tools/TestNavmeshTool.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DotRecast.Recast.Demo/Tools/TestNavmeshTool.cs b/src/DotRecast.Recast.Demo/Tools/TestNavmeshTool.cs index 7f351b4..997a20b 100644 --- a/src/DotRecast.Recast.Demo/Tools/TestNavmeshTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/TestNavmeshTool.cs @@ -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()) {