Log inGet started
World

Car Forge: Procedural Car Generator and Traffic Fleet Kit

Branchmain
Branchesmain
Commit98552b9f03

README.md

carShowcase.showcase

The shared half of the Car Forge showroom, used by the CarGallery component and callable from any script:

  • setPreset(name) / step(dir): change the gallery's synced preset from any peer (the owner writes it; other peers send it a carShowcase:preset message).
  • takeOut(d): spawn Car Forge description d as a drivable car in a free slot at the gallery's drive start and seat the local player, removing this player's previous test car. myCar() returns that car's id.
  • showPicker() / hidePicker(): the top-centre picker: < preset > arrows, an All presets grid (mouse and touch), [ / ] keys and gamepad shoulder buttons; hidden while the player drives.
  • presets(), labelOf(id), indexOf(id), current().