Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

types.Shape

An area of the world. A box takes in its min corner and stops short of max; a cylinder rises height blocks from base.

type Shape = { kind: "box", min: vector, max: vector } | { kind: "sphere", center: vector, radius: number } | { kind: "cylinder", base: vector, radius: number, height: number }