英文:
How to simulate crash of cars and pedestrians in anylogic
问题
I'm working on a simulation of a zone evacuation, where all agents try to exit the zone once I press a button. However, I'm struggling with the issue of pedestrians colliding with cars or getting hit by them. The main issue is that pedestrians are passing through the cars. I need to ensure they stop when they crash or stop the cars in time to avoid collisions. I would greatly appreciate any suggestions or guidance on how to tackle this issue, or if there is another approach I should consider. Thank you in advance.
I have tried creating roads and making agents move in different directions, but regardless of what I do, they still don't collide with each other.
英文:
I'm working on a simulation of a zone evacuation, where all agents try to exit the zone once I press a button. However, I'm struggling with the issue of pedestrians colliding with cars or getting hit by them, The main issue is that pedestrians are passing through the cars, i need to sink when they crash or stop the cars in the time they crash. I would greatly appreciate any suggestions or guidance on how to tackle this issue, or if there is another approach I should consider. Thank you in advance
I have tried creating roads and making agents move in different directions, but regardless of what I do, they still don't collide with each other.
答案1
得分: 1
他们永远不会,这两个库并不是为了与彼此“互动”而设计的。
然而,AnyLogic 非常灵活,你可以创建它们。你需要为行人和汽车添加“眼睛”,定期扫描环境本身...
这里 是一个演示这种方法的示例模型。我在这篇博客文章中描述了如何实现它。
英文:
They will never, the 2 libraries are not designed to "interact" with each other.
However, AnyLogic being infinitely flexible, you can make them. You need to give peds and cars "eyes" that regularly scan the environment themselves...
Here is an example model demo-ing the approach. I describe how to get there in this blog post.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论