Skip to content

five-on-it / apps/client/src/renderer/armour-view

apps/client/src/renderer/armour-view ​

What the armoured classes and the mod garage's upgrades look like (the ten-star build's V1), every frame, for every car on screen (the player's and everyone else's), as the snapshots carry them (the simulation's mods.ts and jets.ts decide; the client only draws):

  • A water jet spraying (CarView.jet, its heading): a stream of drops from its nozzle (its class's jet.muzzle) along the heading, thrown up a little and falling onto the street at about its reach, foam where it lands.
  • A nitro burn (CarView.nitro): a tongue of flame out of its exhaust, backward, white at the root and red at the tip.
  • A bull bar fitted (CarView.bullBar): a dark bar across its nose on two uprights.

Each is a pool of particles or a set of thin instances of one unlit mesh, as the flames (flames.ts) are.

Variables ​

Functions ​