API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeDiagonalPolicy
@codexo/exojs-pathfinding / pathfinding / stable
How diagonal steps are allowed on a GridSpace. - `never` - four-connected movement only. - `no-corner-cutting` - a diagonal step needs both cells it passes between to be walkable, which is what stops an agent from clipping through the corner where two walls meet. - `always` - eight-connected movement with no such restriction.
0
props
0
methods
0
events
Import
import { DiagonalPolicy } from '@codexo/exojs-pathfinding'How diagonal steps are allowed on a GridSpace.
- `never` - four-connected movement only. - `no-corner-cutting` - a diagonal step needs both cells it passes between to be walkable, which is what stops an agent from clipping through the corner where two walls meet. - `always` - eight-connected movement with no such restriction.
Definition1
"always" | "never" | "no-corner-cutting"Source