Closed cdm456852 closed 5 years ago
when you call DynamicBlocker.OnDeactivate(),the pathfinding System still believe this block is unpassable. I resolve it by setting GridNode._clearanceDegree=1 when (unwalkable==false&&_clearanceDegree==0) in the function GridNode.UpdateClearance()
Spotted some bugs in clearance degree calculations. Also capped clearance degree to 8 for dynamic grid update performance.
when you call DynamicBlocker.OnDeactivate(),the pathfinding System still believe this block is unpassable.
I resolve it by setting GridNode._clearanceDegree=1 when (unwalkable==false&&_clearanceDegree==0) in the function GridNode.UpdateClearance()