Log inGet started
World

Crumple Zone: Crash Test Dummy Simulator

Branchmain
Commit8d4e06b8c8

README.md

camsGallery

All six crashCams cameras live at the same time, side by side. The crash moment stands still: a hatchback (the crashCars lineup meshes, no physics) with its bumper on the face of the concrete block, a yellow stand-in dummy in the driver's seat, the floor with its glass pit, and the lab's camera props.

The Gallery entity carries CamsGallery and six child cameras named by kind id (highSpeedSide, overhead, barrierFace, dummyView, chase, underCar). In play each one becomes its kind through Cams.use(camera, kind, { car = GalleryChassis, head = GalleryHead, impact = {0, 0.5, 0} }) and renders into its own tile: 3 x 2 on a wide screen, 2 x 3 on a narrow portrait one, each tile titled with its camera number, name and id. In edit mode the tiles describe each camera and ask you to press play, since the behaviours place their cameras only while the gameplay clock runs.

Open it with layers.load("parts.crashCams.examples.camsGallery") and press play, or load it additively beside another scene with { additive = true, origin = { x, y, z } } (the impact point follows the Gallery entity).