From 19f5b05d6ad5e641b99e9db628b23a78a52074d6 Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 6 Dec 2023 00:52:09 +0900 Subject: [PATCH] fix: 'RANDOM_POINTS_IN_CIRCLE' mode where random points accumulate in RecastDemo --- src/DotRecast.Recast.Demo/Tools/TestNavmeshSampleTool.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DotRecast.Recast.Demo/Tools/TestNavmeshSampleTool.cs b/src/DotRecast.Recast.Demo/Tools/TestNavmeshSampleTool.cs index 7e26eca..b9552dd 100644 --- a/src/DotRecast.Recast.Demo/Tools/TestNavmeshSampleTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/TestNavmeshSampleTool.cs @@ -698,6 +698,7 @@ public class TestNavmeshSampleTool : ISampleTool } 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); } }