Module walking

Source

Structsยง

Pedestrian ๐Ÿ”’
WalkingSimState ๐Ÿ”’
Simulates pedestrians. Unlike vehicles, pedestrians can move bidirectionally on sidewalks and just โ€œghostโ€ through each other. Thereโ€™s no queueing or slowdown when many people are overlapping. Theyโ€™re simply grouped together into a DrawPedCrowdInput for rendering.

Enumsยง

PedState ๐Ÿ”’

Constantsยง

TIME_TO_FINISH_BIKING ๐Ÿ”’
TIME_TO_START_BIKING ๐Ÿ”’

Functionsยง

area ๐Ÿ”’
crowdedness_penalty ๐Ÿ”’
Returns a number in (0, 1] to multiply speed by to account for current crowdedness.
find_crowds ๐Ÿ”’