text: [{"Owner":"Alex10","Date":"2014-12-13T14:28:56Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p style_eq__qt_color_dd_rgb(40_co_40_co_40)_sm_font-family_dd_helvetica_co_ arial_co_ sans-serif_sm__qt__gt_I do play on websocket and I have a problem with the task motion bullet after the server response._lt_br_gt__lt_br_gt_1) When clicked I call a function selfBullet  from class bullet and sent to the server the camera position and the player id._lt_/p_gt__lt_pre class_eq__qt_ipsCode prettyprint_qt__gt_window.addEventListener(_qt_click_qt__co_ function() {     var bul _eq_ new Bullet()_sm_     bul.selfBullet()_sm_     ws.send( JSON.stringify( { _t_e_t__dd__t_shoot_t__co_ _t_id_t__dd_player.id_co_ _t_pos_t__dd_camera.position_co_ _t_dir_t__dd_camera.cameraDirection } )})_sm__lt_/pre_gt__lt_p style_eq__qt_color_dd_rgb(40_co_40_co_40)_sm_font-family_dd_helvetica_co_ arial_co_ sans-serif_sm__qt__gt_2) Server for all other players return these values and calls function remoteBullet from class bullet_lt_/p_gt__lt_pre class_eq__qt_ipsCode prettyprint_qt__gt_ws.onmessage _eq_ function(event){   var bullet _eq_ new Bullet()_sm_   bullet.remoteBullet(msg.id_co_ msg.pos )_sm_}_lt_/pre_gt__lt_p style_eq__qt_color_dd_rgb(40_co_40_co_40)_sm_font-family_dd_helvetica_co_ arial_co_ sans-serif_sm__qt__gt__lt_span_gt_3) And then there is a problem. _lt_/span_gt__lt_span style_eq__qt_color_dd_rgb(34_co_34_co_34)_sm_font-family_dd__t_Helvetica Neue_t__co_ Arial_co_ Verdana_co_ sans-serif_sm__qt__gt_in registerBeforeRender added to the motion vector bullets constant but it looks pretty chaotic._lt_/span_gt__lt_/p_gt__lt_pre class_eq__qt_ipsCode prettyprint_qt__gt_this.remoteBullet _eq_ function(player_co_ pos_co_ dir){    var ctr _eq_ 0_sm_    bullet.position _eq_ new BABYLON.Vector3(pos.x_co_ pos.y_co_ pos.z)_sm_    scene.registerBeforeRender(function () {        bullet.position _eq_ new BABYLON.Vector3(dir.x*ctr_co_ dir.y*ctr_co_ dir.z*ctr)_sm_        ctr +_eq_ 1_sm_    })_sm_}_sm__lt_/pre_gt__lt_p_gt_How to get the right direction to draw the bullet movement after the server_t_s response?_lt_/p_gt__lt_p_gt_ _lt_/p_gt__lt_p style_eq__qt_color_dd_rgb(40_co_40_co_40)_sm_font-family_dd_helvetica_co_ arial_co_ sans-serif_sm__qt__gt__lt_span style_eq__qt_color_dd_rgb(255_co_255_co_255)_sm__qt__gt_}_lt_/span_gt__lt_br_gt_example _lt_a href_eq__qt_http_dd_//pauluskp.com/babylon_qt_ title_eq__qt_External link_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//pauluskp.com/babylon_lt_/a_gt__lt_br_gt_ _lt_br_gt_ _lt_/p_gt__lt_div_gt_ _lt_/div_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":"Dad72","Date":"2014-12-13T14:58:36Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_div_gt__lt_div_gt_are you sure that your Vector3 return _t_float_t_ ?. but I do not know if it_t_ll solve your problem._lt_/div_gt__lt_pre class_eq__qt_ipsCode prettyprint_qt__gt_scene.registerBeforeRender(function () {    bullet.position _eq_ new BABYLON.Vector3(parseFloat(dir.x*ctr)_co_ parseFloat(dir.y*ctr)_co_ parseFloat(dir.z*ctr))_sm_    ctr +_eq_ 1.0_sm_})_sm__lt_/pre_gt__lt_p_gt_When I test your link_co_ I see no problem._lt_/p_gt__lt_/div_gt__lt_p_gt_ _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":"Alex10","Date":"2014-12-13T17:11:34Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_No_co_ did not help_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":"Dad72","Date":"2014-12-13T17:32:35Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_div_gt_But I do not see your problem_co_ when I test everything works properly._lt_/div_gt__lt_br_gt__lt_div_gt_I tested with google chrome._lt_/div_gt__lt_br_gt__lt_div_gt_What_t_s your problem more precisely ?_lt_/div_gt__lt_br_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":"Alex10","Date":"2014-12-13T18:00:28Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_div_gt_The problem is that the second player who shot sphere does not see how it flies sphere_lt_/div_gt__lt_br_gt__lt_div_gt_For some reason_co_ the scope of the center of the screen is moving in the wrong direction_lt_/div_gt__lt_br_gt__lt_div_gt_ _lt_/div_gt__lt_br_gt__lt_div_gt_Correctly only when shooting in the first person in function this.selfBullet_lt_/div_gt__lt_br_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":"Alex10","Date":"2014-12-13T18:23:52Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_div_gt__lt_br_gt__lt_div_gt_Please see video_dd__lt_/div_gt__lt_br_gt__lt_div_gt__lt_a href_eq__qt_https_dd_//www.youtube.com/watch?v_eq_wGxtl3qTn1I#t_eq_14s_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.youtube.com/watch?v_eq_wGxtl3qTn1I#t_eq_14s_lt_/a_gt__lt_/div_gt__lt_br_gt__lt_div_gt_The left of the first-person shooting player and everything is fine_lt_/div_gt__lt_br_gt__lt_div_gt_Right rendering server response is already there the wrong direction  _lt_img src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_sad.png_qt_ alt_eq__qt__dd_(_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/sad@2x.png 2x_qt_ width_eq__qt_20_qt_ height_eq__qt_20_qt__gt_  _lt_img src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_sad.png_qt_ alt_eq__qt__dd_(_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/sad@2x.png 2x_qt_ width_eq__qt_20_qt_ height_eq__qt_20_qt__gt__lt_/div_gt__lt_br_gt__lt_/div_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":"Dad72","Date":"2014-12-13T19:53:37Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_I feel that there is a problem with the placement of cameras for player 1 and player 2. something does not seem logical to me when comparing the 2 scene._lt_/p_gt__lt_p_gt_ _lt_/p_gt__lt_div_gt_left the track player a green box and red box close to him._lt_/div_gt__lt_div_gt_the player has the right to see a red box and green box but close too_co_ that gold should be away This player there because it is close to the other if one compares the distance of each player._lt_/div_gt__lt_div_gt_ _lt_/div_gt__lt_div_gt_A player should have the boxes near him and the other away._lt_/div_gt__lt_div_gt_ _lt_/div_gt__lt_div_gt_Sorry for my bad english_co_ but I think that there is something not coherent with your network._lt_/div_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":"Alex10","Date":"2014-12-14T19:57:28Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_I found a mistake already. I made a mistake by passing _qt_camera.сameraDirection_qt_ because for example the camera moves back and forth bullet_co_ so the motion looked very wrong._lt_br_gt__lt_br_gt_I will try to convey direction of the shot using _qt_pickInfo_qt_._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_"}]