Navigation · interface

VoxeliseSettings

Explained in Navigation.

interface VoxeliseSettings
import type { VoxeliseSettings } from '@driftengine/nav';

Properties

NameTypeDescription
cellSizereadonlynumberHorizontal voxel size, world units.
cellHeightreadonlynumberVertical voxel size, world units.
maxSlopereadonlynumberThe steepest surface an agent can stand on, in degrees.
agentHeightreadonlynumberHow much headroom an agent needs above the floor.
agentRadiusreadonlynumberHow far from an edge an agent's centre must stay.
maxStepreadonlyoptionalnumberHow 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.
More

Here 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.