Skip to content

five-on-it / packages/ai/src/police-fittings / FITTINGS

Variable: FITTINGS ​

const FITTINGS: object

Defined in: packages/ai/src/police-fittings.ts:48

The numbers of the fittings.

Type Declaration ​

dartCone ​

readonly dartCone: 0.35 = 0.35

…with the car within this angle of the cruiser's nose (rad)…

dartMax ​

readonly dartMax: 25 = 25

…this far at most (m, the launcher's reach)…

dartMin ​

readonly dartMin: 5 = 5

A dart is fired from this near behind the player's car at least (m)…

darts ​

readonly darts: 2 = 2

Darts a launcher carries.

dartTicks ​

readonly dartTicks: 240 = 240

…and one this often at most (ticks: four seconds).

tagTicks ​

readonly tagTicks: 120 = 120

A tag is a sighting this often (ticks: two seconds).

tailDistance ​

readonly tailDistance: 80 = 80

Behind a tagged car the units fall back to this (m).