Skip to content

five-on-it / packages/world/src/audit/pieces / flatOnSlope

Function: flatOnSlope() ​

flatOnSlope(level, judged): PieceFinding[]

Defined in: packages/world/src/audit/pieces.ts:280

A flat piece (no taller than 6 cm, nothing colliding with it: a car park's pad) on ground that is not flat: the ground under its middle and its corners rises and falls more than 2 cm. A piece is one rigid mesh, so on a slope part of it sinks into the ground and part floats over it, and where it is in the ground the two fight for the same pixels; a generator lays such a piece on a level pad of its own, as it does a building.

Parameters ​

level ​

LevelData

judged ​

Map<number, Judged>

Returns ​

PieceFinding[]