|
|
本帖最后由 EPFL_GO111 于 2010-5-8 10:32 编辑
* A1 c1 \( e- C! z0 Z' n4 s2 N5 r! z7 u% X' k) r* s. n8 g8 S
now i have an idea that if the leader object in the route 1 has the distance less than 10 meters (for example), i would choose the route 2 to avoid it.. however, if the leader object in the route 1 has the distance greater than 10 meters, i would choose the route 1 to continue my journey.( k) J0 V- r" P8 s! L
$ V3 H4 o9 H9 a6 r/ \Can Extendsim detect the distance? or how can i realize this function by using other ways?. a1 {" |, H% L& g7 z7 c
' O) Z z3 l. _$ H' H! R$ E/ sthank you for sharing your ideas. thx
; F9 M5 h0 \* U. M4 _' S. @( A6 a8 g
, @0 D5 e8 b8 H' h9 j2 G如题,我想实现如下效果:如果我前面的小球(在路径1)距离我小于10米,我就会选择路径2去避免与他相碰,但是,如果我前面的小球(在路径1)距离我大于10米,我还是会选择路径1去继续我的旅程。
4 t9 N: \; Q6 `' n* Q a0 G) ?; Y6 ]" v4 ]% E) U/ n
请问Extendsim可以探测距离吗?还是要用其它方法去实现?谢谢指导!! |
|