Skip to content

NavigationBuild beta ​

Interface of @v12-engine/engine

ts
export interface NavigationBuild

What a navigation is built from: the ground's (or the water's) triangles, and how to cut them. Plain data, sent to a worker as it is

Members ​

config ​

ts
config: NavigationBuildConfig;

How the triangles are cut

indices ​

ts
indices: Uint32Array;

The triangles as indices into positions

positions ​

ts
positions: Float32Array;

The ground's triangles as x, y, z triples, three vertices to a triangle

speeds ​

ts
speeds?: NavigationSpeeds;

How fast one on foot goes over each cell of the ground (groundSpeedOfCell), for a path to weigh: none where every cell is 1, which cuts the ground as it always was