Log inGet started
Package

racingKit.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

surfaces

The six track surfaces: asphalt, dirt, ice, neon, offroad and water. Each one is a look (road material, edge trim, barrier style, bumps, a water sheet for the channel) and a feel: a physics ground surface the kart's wheels grip with, so ice really slides and dirt really drifts for players and AI alike, with no per-wheel script. RaceTrack and build read it to build the road; api, the gallery and the HUD read labels and tints from it.

surfacegripedgebarriers
asphalt1.0red and white kerbstyre walls
dirt0.62dry grass vergehay bales
ice0.16packed snow rimsnow banks
neon0.95glowing rainbow trimglowing rails
offroad0.55gravel, bumpy roadrock walls
water0.5concrete lip, water sheetchannel walls

Functions

  • names(): surface names in gallery order (also ORDER).
  • get(name): one surface definition (label, blurb, grip, rolling, physics, material, edge, edgeStyle, barrier, barrierLabel, bumps, water, sky, tint), or nil.
  • resolve(name?): the surface for name, or asphalt for an unknown one.
  • list(): every definition in order.
  • define(): registers every surface (plus racingKit.oil and racingKit.barrier) as a physics ground surface on this peer; idempotent, RaceTrack calls it.