five-on-it / packages/sim/src/pedestrians / PavementStart
Interface: PavementStart
Defined in: packages/sim/src/pedestrians.ts:213
Where a pedestrian of the crowd starts on the pavements: its role, its node, a shopkeeper's door.
Properties
commute?
optionalcommute?:"home"|"work"
Defined in: packages/sim/src/pedestrians.ts:223
A commuter walks to its goal once and goes inside there: to work, or home.
door?
optionaldoor?:number
Defined in: packages/sim/src/pedestrians.ts:219
A shopkeeper's door: an index into the pavements' doors (it stands there).
goal?
optionalgoal?:number
Defined in: packages/sim/src/pedestrians.ts:221
A commuter's goal: the node it walks to (its other end drawn when absent).
node
node:
number
Defined in: packages/sim/src/pedestrians.ts:217
The pavement node it stands on.
place?
optionalplace?:object
Defined in: packages/sim/src/pedestrians.ts:227
A vendor's or a queuer's place (its spot's, a place down a queue) and the way it faces there; a sitter's is in front of its seat.
x
x:
number
yaw
yaw:
number
z
z:
number
role
role:
"civilian"|"shopkeeper"|"jogger"|"commuter"|"dog_walker"|"vendor"|"smoker"|"queuer"|"sitter"|"foot_officer"|"street_sweeper"|"dog"
Defined in: packages/sim/src/pedestrians.ts:215
Its role (a person's: a dog is spawnDog's to spawn, and dog here is a civilian).
spot?
optionalspot?:number
Defined in: packages/sim/src/pedestrians.ts:225
A vendor's stand, a queuer's stop, a sitter's seat: an index into the level's spots (@foi/world's levelSpots).