|
本帖最后由 EPFL_GO111 于 2010-6-2 10:45 编辑 ! R" C! q$ z+ [8 ]- c9 G0 G
8 l" P( D4 ]& ~% p+ F+ Z2 J3 U
在实现生活中,在一个十字路口,第二排的小球正在移动,所以第一排的小球要让第二排的小球先走完。而我想实现的效果是如何使得前进中的小球突然停止,请问在transport block 中如何设置,谢谢
+ b$ _- i) |7 e# v% K! k
! h) C- R0 l8 {: X# j+ \- h( WAs 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. / K. l, q% X( c2 }9 v
! `( e5 Y: ` c/ D& u2 y/ {
http://hi.csdn.net/attachment/201006/2/2324687_1275446617zIZp.jpg 2 x; U! ?1 J0 f0 q- b* @# V+ V/ C
6 g+ Q( b6 ?) H' Y
3 M+ y X Q8 o$ G( B# H3 |
|
|