five-on-it / packages/sim/src/dormant / DORMANT
Variable: DORMANT
constDORMANT:object
Defined in: packages/sim/src/dormant.ts:47
The numbers of the dormant cars.
Type Declaration
dozeSeconds
readonlydozeSeconds:10=10
Left alone this long (s), a car dozes off.
lookahead
readonlylookahead:2=2
The ticks of a mover's way looked ahead.
margin
readonlymargin:0.1=0.1
How far beyond what a mover covers in lookahead ticks it wakes a dormant car (m).
playerRange
readonlyplayerRange:60=60
A car this near a player (m, on the ground) is never left alone.
respawnRange
readonlyrespawnRange:120=120
A dormant spawner's bay is refilled only with no player within this (m, spawners.ts): out of sight.
settle
readonlysettle:0.2=0.2
…and up or down (m/s: a car at rest on its springs reads about 0.06)…
settleSeconds
readonlysettleSeconds:0.5=0.5
A freshly parked car dozes off once it has stood still this long (s).
spin
readonlyspin:0.05=0.05
…and turning slower than this (rad/s).
still
readonlystill:0.05=0.05
Standing still: slower than this across the ground (m/s)…
walker
readonlywalker:0.5=0.5
A person on foot wakes a dormant car only moving faster than this (m/s): one leaning on it does not.