five-on-it / packages/sim/src/pedestrians / PavementStart
Interface: PavementStart
Defined in: packages/sim/src/pedestrians.ts:229
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:239
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:235
A shopkeeper's door: an index into the pavements' doors (it stands there).
goal?
optionalgoal?:number
Defined in: packages/sim/src/pedestrians.ts:237
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:233
The pavement node it stands on.
place?
optionalplace?:object
Defined in: packages/sim/src/pedestrians.ts:243
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; a mechanic's is the bay it works at (where it goes in), the way it faces the bay.
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"|"mechanic"|"partier"
Defined in: packages/sim/src/pedestrians.ts:231
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:241
A vendor's stand, a queuer's stop, a sitter's seat: an index into the level's spots (@foi/world's levelSpots).