SnpM / LockstepFramework

Framework for lockstep RTS, TD, and MOBA games.
MIT License
1.39k stars 348 forks source link

DynamicBlocker #150

Closed cdm456852 closed 5 years ago

cdm456852 commented 6 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()

SnpM commented 5 years ago

Spotted some bugs in clearance degree calculations. Also capped clearance degree to 8 for dynamic grid update performance.