Log inGet started
Package

gates.module

Newest version

README.md

gates

The five checkpoint gate styles as generated meshes: Classic Arch (arch, an inflatable red and white arch), Floating Ring (ring, a glowing turning ring), Sea Buoys (buoys, bobbing red and green channel buoys with lamps), Sci-fi Hologram (hologram, emitter pylons with a cyan light frame and sweeping scan bars) and Pixel-Art Flag (pixelFlag, voxel posts with blocky checkered flags). The start/finish gate gets a checkered black and white version of each. build uses it to place one gate per checkpoint; api and the gallery read the labels.

A gate is built in its own frame: x across the road, y up with the road at y = 0, karts driving through towards -z. Each part names a racingKit material key and an optional anim (spin, bob, scan, wave) that build.animate plays.

Functions

  • names(): the style names (also ORDER).
  • get(name): a style's label and blurb, or nil.
  • resolve(name?): the name if it is a style, otherwise "arch".
  • parts(style, halfWidth, start?): the gate's parts { name, material, geo, anim, pivot } for a road of that half width (cached), and the height a banner label hangs at.
  • torus(...): the torus mesh helper the ring gate uses.