Skip to content

An agent spawn waiting queue for 2-dimensional movement agent in traffic intersection case study #1359

Answered by rht
mrak13 asked this question in Q&A
Discussion options

You must be logged in to vote

A quick hack: you can mark the agent state to be "in queue", which you can set it so that it prevents them from being in collision with other agents. You remove the agent from the grid, but keep them in the scheduler. When it's the agent's turn in the queue, you can put them back into the grid at the respawn point.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrak13
Comment options

Answer selected by mrak13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants