EPFL_GO111 发表于 2010-5-29 15:58:58

如何使得前进中的小球突然停止?

本帖最后由 EPFL_GO111 于 2010-6-2 10:45 编辑

在实现生活中,在一个十字路口,第二排的小球正在移动,所以第一排的小球要让第二排的小球先走完。而我想实现的效果是如何使得前进中的小球突然停止,请问在transport block 中如何设置,谢谢

As can be seen from the picture, this is the simulation reflecting the intersection. To be specific, when the green circles of array two are moving, the green circles of array one must stop to avoid collision. My point is that how can I make the forwarding green circle stop based on some conditions? Thank you for your tips.http://hi.csdn.net/attachment/201006/2/2324687_1275446617zIZp.jpg

http://hi.csdn.net/attachment/201006/2/2324687_1275446617zIZp.jpg


iesim 发表于 2010-5-30 00:18:31

如果你希望有二路来源的队列可能有交叉的行进,应该采用 select item in 模块,通过 select 端口控制应该让哪路人前进,当允许行进时,在通过 transport 模块进行 行走的模拟。

EPFL_GO111 发表于 2010-6-2 10:45:56

2# iesim

我重新把图上传了,我先试一下,谢谢你的提示
页: [1]
查看完整版本: 如何使得前进中的小球突然停止?