-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In the assets repo, agents have their arrival encoded as a tick, e.g.
https://github.com/crowdedjs/assets/blob/c0841be5261f3762533a3a8c143a398b7f963619/arrivals/arrivalHospital.js#L4
Agents are spawned in crowd-setup based on their .startMSec attribute,
https://github.com/crowdedjs/crowd-setup/blob/12257fe45d6ad6abd108d7acfdcebd7c8d27184a/index.js#L75
The conversion from ticks to milliseconds take place in the agent constructors, e.g.
examples/src/people/patient-agent.js
Line 24 in 0edba95
| this.startMSec = agent.arrivalTick * 25; // We simulate 25 fps |
Metadata
Metadata
Assignees
Labels
No labels