Skip to content

five-on-it / apps/client/src/ui/minimap-data / Footprint

Interface: Footprint ​

Defined in: apps/client/src/ui/minimap-data.ts:26

A footprint on the ground (m), turned by its yaw: the bounds of a placement's mesh, scaled and turned like it.

Properties ​

kind ​

kind: "structure" | "building" | "prop"

Defined in: apps/client/src/ui/minimap-data.ts:38

What the piece is, for its colour (terrain is drawn by height instead).


sx ​

sx: number

Defined in: apps/client/src/ui/minimap-data.ts:32

Size along the piece's own x.


sz ​

sz: number

Defined in: apps/client/src/ui/minimap-data.ts:34

Size along the piece's own z.


triangles? ​

optional triangles?: Float32Array<ArrayBufferLike>

Defined in: apps/client/src/ui/minimap-data.ts:44

A large piece's own triangles seen from above (x, z of each corner, three a triangle), drawn instead of its box: one mesh of many parts (a city's seven bridges) would cover the map with its box.


x ​

x: number

Defined in: apps/client/src/ui/minimap-data.ts:28

Centre x.


yaw ​

yaw: number

Defined in: apps/client/src/ui/minimap-data.ts:36

Heading (rad, 0 faces +z); 0 for an axis-aligned one.


z ​

z: number

Defined in: apps/client/src/ui/minimap-data.ts:30

Centre z.