racingKit.package
This package holds more than this page lists. See all of its files in its world.
README.md
racingKit tests
The racingKit test suite. It checks the kit's rules and data in edit mode:
- a closed track is built from a curve (closed loop, gates in order, grid behind the line), and curve points encode and decode;
- laps count only through every gate in order: a skipped checkpoint, a cut across the infield and wrong-way crossings never count;
- race positions rank by progress, and finishers are ordered by finish time;
- standings survive the network encoding (names with separators included);
- every surface and gate style exists, and a track's surface and gate style swap with one field, rebuilding its parts;
- item rolls favour back markers with boosts and leaders with oil;
- the four AI personalities exist and the rubber-band pace speeds up a trailing racer and eases off a leader.
It leaves alone real driving physics in play (karts actually gripping, sliding and racing round a track) and multiplayer with two engines (seating, ownership and synced standings across peers); those are checked by playing the showcase scene.
Run it in edit mode:
asset.resolve("racingKit.tests.racingKit", "testSuite"):run()