test remove all obstacle

This commit is contained in:
ikpil 2023-08-23 00:03:35 +09:00
parent 1cb03e2c5f
commit e590ca0dba
1 changed files with 10 additions and 1 deletions

View File

@ -33,6 +33,15 @@ namespace DotRecast.Recast.Toolset.Tools
{
if (null == _tc)
return;
for (int i = 0; i < _tc.GetObstacleCount(); ++i)
{
DtTileCacheObstacle ob = _tc.GetObstacle(i);
if (ob.state == DtObstacleState.DT_OBSTACLE_EMPTY)
continue;
_tc.RemoveObstacle(_tc.GetObstacleRef(ob));
}
}
public void RemoveTempObstacle(RcVec3f sp, RcVec3f sq)