Skip to content

five-on-it / packages/sim/src/pedestrians / pedestrianSystem

Function: pedestrianSystem() ​

pedestrianSystem(sim): void

Defined in: packages/sim/src/pedestrians.ts:341

The pedestrian system: a pedestrian knocked down (by a car, a punch, a shot) lies deaf to the world and decides anew once up; a shopkeeper near gunfire ducks inside, anyone else runs from it for a while; otherwise it walks the pavements in its role, or wanders off them. A dog does what dogs do (dogs.ts' dogTick). Writes the character's input; the character system does the walking.

Parameters ​

sim ​

SimWorld

Returns ​

void