CamsGallery.component
README.md
CamsGallery
Shows every crashCams camera kind live at the same time. Put it on an entity whose children include
one camera per Cams.kinds() entry, each named after its kind id (highSpeedSide, overhead,
barrierFace, dummyView, chase, underCar) and carrying a Camera.
In play, start gives each child its kind with Cams.use(camera, kind, { car, head, impact }) and
points it at a render texture of its own. A local screen lays the six pictures out side by side:
3 x 2 on a wide screen, 2 x 3 on a narrow portrait one. Each picture has a title strip with the
camera number, the kind's name and its id. The behaviours place their cameras every frame, which
only happens while the gameplay clock runs. In edit mode the cards show "PRESS PLAY TO ROLL" with
each kind's description instead of six unplaced cameras.
Fields: car, head (entity refs), impact (the obstacle face point relative to this entity) and
layer. The screen and the textures are released in onDestroy. It needs no sibling components.
Used by examples/camsGallery.scene.