NavGrid Smooth Path
Simplifies a cell path into fewer world-space waypoints where line-of-sight is valid.
Can optionally keep smoothing cost-aware so expensive terrain is not bypassed unfairly.
| Parameter | Description |
|---|---|
| NavGrid | NavGrid used for line-of-sight and cost checks. |
| Path Cells | Input path as grid cells. |
| No Corner Cut | Treat diagonal corner touches as blocked. |
| Respect Costs | If true, only accepts smoothed segments within cost tolerance. |
| Cost Weight | Cost weight used for comparison (match your pathfinding setting). |
| Tolerance Percent | Allowed extra segment cost percentage. |
| Waypoints | Output smoothed path as world-space points. |
Example
- Feed Path Cells from NavGrid Find Path.
- Keep No Corner Cut enabled for tight maps.
- Store Waypoints and pass them to follow logic.