five-on-it / apps/tools/src/port-level / createLevelScene
Function: createLevelScene()
createLevelScene(
level,kits?,extra?):LevelScene
Defined in: apps/tools/src/port-level.ts:146
Builds a level as a headless scene: the library, the kits given installed under _kits, the level's placements and then extra pieces, a sky light, a sun and a camera over the city. Throws when a placed mesh comes from a kit that is not given.
Parameters
level
kits?
readonly Kit[] = []
extra?
readonly PiecePlacement[] = []