fix: 'RANDOM_POINTS_IN_CIRCLE' mode where random points accumulate in RecastDemo

This commit is contained in:
ikpil 2023-12-06 00:52:09 +09:00
parent b24d6492a8
commit 19f5b05d6a
1 changed files with 1 additions and 0 deletions

View File

@ -698,6 +698,7 @@ public class TestNavmeshSampleTool : ISampleTool
} }
else if (_mode == RcTestNavmeshToolMode.RANDOM_POINTS_IN_CIRCLE) else if (_mode == RcTestNavmeshToolMode.RANDOM_POINTS_IN_CIRCLE)
{ {
_randomPoints.Clear();
_tool.FindRandomPointAroundCircle(navQuery, m_startRef, m_endRef, m_spos, m_epos, m_filter, _constrainByCircle, _randomPointCount, ref _randomPoints); _tool.FindRandomPointAroundCircle(navQuery, m_startRef, m_endRef, m_spos, m_epos, m_filter, _constrainByCircle, _randomPointCount, ref _randomPoints);
} }
} }