Navigation · interface
VoxeliseSettings
Explained in Navigation.
interface VoxeliseSettingsimport type { VoxeliseSettings } from '@driftengine/nav';Properties
| Name | Type | Description |
|---|---|---|
cellSizereadonly | number | Horizontal voxel size, world units. |
cellHeightreadonly | number | Vertical voxel size, world units. |
maxSlopereadonly | number | The steepest surface an agent can stand on, in degrees. |
agentHeightreadonly | number | How much headroom an agent needs above the floor. |
agentRadiusreadonly | number | How far from an edge an agent's centre must stay. |
maxStepreadonlyoptional | number | How many cells of height an agent can step across, the number buildRegions takes; 1 when
absent. A neighbour further above or below than this is an edge, and erosion keeps the agent's
radius from it.MoreHere as well as there because the polygons are flat. Two regions whose edges touch are joined by a portal whatever their heights, so a floor and a ledge above it must be kept apart by erosion, or a route goes over the ledge. |