Skip to content

five-on-it / apps/level-editor/src/scripts/blocks/terrain

apps/level-editor/src/scripts/blocks/terrain ​

Marks a node of the editor scene as terrain: a box that is ground (a terrace, a plateau, the flat top of a hill), walked and driven on and never an obstacle; a cliff where it ends, a slope where a ramp leans against it. A unit cube scaled to size, yaw only. The library's block:terrain carries it: place instances of that mesh for npm run level:export to read.

Classes ​