text: [{"Owner":"BangTao","Date":"2017-01-14T06:13:11Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\thi.me again////\n_lt_/p_gt_\n\n_lt_p_gt_\n\tQ1_dd_Look at this PG.i set the position x and y to 5.Is there anything I missed?_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#2KXNQ6%236_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#2KXNQ6#6_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tQ2_dd_this._lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#24NW28_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#24NW28_lt_/a_gt__co__co_and i wanna check the red ball and the wihte ball(tmpDistance and shortest) every time i change the ball_t_s position in the loop ..but it didn_t_t work..\n_lt_/p_gt_\n\n_lt_p_gt_\n\tand if i set ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\n_lt_/p_gt_\n\n_lt_pre style_eq__qt_background-color_dd_#ffffff_sm_color_dd_#000000_sm_font-family_dd__t_宋体_t__sm_font-size_dd_12pt_sm__qt__gt_\n_lt_span style_eq__qt_color_dd_#000080_sm_font-weight_dd_bold_sm__qt__gt_var _lt_/span_gt__lt_span style_eq__qt_background-color_dd_#ffe4ff_sm__qt__gt_octreeSub_lt_/span_gt_ _eq_ {_lt_span style_eq__qt_color_dd_#660e7a_sm_font-weight_dd_bold_sm__qt__gt_X_lt_/span_gt__dd_ _lt_span style_eq__qt_color_dd_#0000ff_sm__qt__gt_100_lt_/span_gt__co_ _lt_span style_eq__qt_color_dd_#660e7a_sm_font-weight_dd_bold_sm__qt__gt_Y_lt_/span_gt__dd_ _lt_span style_eq__qt_color_dd_#0000ff_sm__qt__gt_100_lt_/span_gt__co_ _lt_span style_eq__qt_color_dd_#660e7a_sm_font-weight_dd_bold_sm__qt__gt_Z_lt_/span_gt__dd_ _lt_span style_eq__qt_color_dd_#0000ff_sm__qt__gt_100_lt_/span_gt_}_sm__lt_/pre_gt_\n\n_lt_p_gt_\n\ti can_t_t get the green box...which is _lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#2KXNQ6%237_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#2KXNQ6#7_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tthank u thank u. &gt_sm_ &lt_sm_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"JohnK","Date":"2017-01-14T11:07:47Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/25175-bangtao/?do_eq_hovercard_qt_ data-mentionid_eq__qt_25175_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/25175-bangtao/_qt_ rel_eq__qt__qt__gt_@BangTao_lt_/a_gt_ hi again you have asked similar questions two or three times and jumped into _lt_strong_gt_Mesh Facet Data_lt_/strong_gt_ thread with a PG combining a little of what you were doing with some of what I showed you and some very new methods without a full understanding- result confusion. Please take a deep breath and think through what you want. You are tending to ask technical questions about your code without telling us what you want to achieve..\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou could explain what you want to do overall and the particular area that is causing problems and diagrams could help.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tSo while the following description may not be what you want to do_co_ use it as a basis to try to explain your project and problems together with your playground.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_em_gt_I have a 3D grid of cells within this grid there is a large sphere and a small sphere. The small sphere moves around in the cells when it hits the large sphere it changes color. I am using a for loop for the animation and it is not working. How do you animate the small sphere so that I can check when it hits the large sphere. I have produced a playground without the cells to show my problems with animation._lt_/em_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAlso I have seen that you have been trying to use scene.registerAfterRender or scene.registerBeforeRender here are some links of them in action that might help you learn about them.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#92EYG%2310_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#92EYG#10_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#1JLGFP_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#1JLGFP_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#1JLGFP%233_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#1JLGFP#3_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tBasically they deal with changing properties of a mesh after or before each frame is drawn that way is one method of animating a mesh..\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"BangTao","Date":"2017-01-14T11:50:48Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_span_gt__lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/14282-johnk/?do_eq_hovercard_qt_ data-mentionid_eq__qt_14282_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/14282-johnk/_qt_ rel_eq__qt__qt__gt_@JohnK_lt_/a_gt_Thank u for reply me_co_i_t_m new this_co_so..and there will be many problems for me...hope u don_t_t mind it.I_t_ve take a very deep breath_co_and come again~~and i kinda know what i_t_m i want...erm ..._lt_/span_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\ti wanna use the _qt_ for loop _qt_ to control the red little ball_t_s move path (seems like there missed something)_co_not useing scene.registerAfterRender.but if i directly use _qt_for loop_qt__co_i cant get the Facet Data to check if ...collision\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"JohnK","Date":"2017-01-14T14:30:31Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tBecause of the way Babylonjs works you cannot use a for loop the loop will finish before the ball is drawn.\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"dbawel","Date":"2017-01-16T03:21:17Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tCloning and repeating on seperate clones perhaps?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tDB\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"BangTao","Date":"2017-01-16T12:10:05Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\t@dbawel thx，now _co_i can create a custom mesh_co_and can get the all vertexs。\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]