text: [{"Owner":"nogalo","Date":"2018-10-26T14:51:37Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi._lt_br /_gt_\n\t_lt_br /_gt_\n\tI am visiting this forum a lot because i recently started working on several projects using babylon.js  am absolutely in love with it. This is my first post/question ever tho and I hope you can help me._lt_br /_gt_\n\tAlso_co_ I put _qt_VirtualStoreProject_qt_ in the name because I believe I will have a few more questions during this so I want to \n_lt_/p_gt_\n\n_lt_p_gt_\n\tI started working on Virtual Store project_co_ and I created proof-of-concept page just to try some things out before going into the real work. Here is a link to that (looks awful at the moment I know)_lt_br /_gt_\n\t_lt_a href_eq__qt_https_dd_//www.productexample.com/virtualStore/virtualStore.html_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.productexample.com/virtualStore/virtualStore.html_lt_/a_gt__lt_br /_gt_\n\t_lt_br /_gt_\n\tNow what I want to achieve is when I click on the mesh_co_ that mash moves toward the center of the camera view. For now the implementation is not very fancy \n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_br /_gt_\n\t_lt_strong_gt_targetPosition _eq_ new BABYLON.Vector3(camera.position.x+20_co_ camera.position.y_co_ camera.position.z)_sm__lt_/strong_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_br /_gt_\n\tand this only looks okay if you are looking straight at the mesh and you are not too close to a wall in front of you (in case you do_co_ the mesh goes outside). _lt_br /_gt_\n\t_lt_br /_gt_\n\tAnother question I want to ask is if there are some TriggerVolumes (as they are called in Unreal Engine 4) inside Babylon. So that i only can use some inputs and interact with meshes when I am inside that volume. I_t_ve kinda implemented this in the demo using the distance between the active camera and the hit after scene.pick()  method. \n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_strong_gt_ pickResult _eq_ scene.pick(scene.pointerX_co_ scene.pointerY)_sm__lt_br /_gt_\n\t currentMesh _eq_ pickResult.pickedMesh_sm__lt_br /_gt_\n\t if (!currentMesh.name.toLowerCase().includes(_qt_env_qt_) &amp_sm_&amp_sm_ pickResult.distance &lt_sm_ 80) _lt_/strong_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tbut I am not sure if that is good solution for this project._lt_br /_gt_\n\t_lt_br /_gt_\n\t_lt_br /_gt_\n\tThank you all for the help. I hope you have a good day. \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":"kcoley","Date":"2018-10-26T16:38:09Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/26992-nogalo/?do_eq_hovercard_qt_ data-mentionid_eq__qt_26992_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/26992-nogalo/_qt_ rel_eq__qt__qt__gt_@nogalo_lt_/a_gt_ welcome to the forum!  \n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tIf you want to move the object towards the center of the camera view_co_ you can try calculating a position from the camera position added to a  scaled camera forward vector_co_ like this playground_dd_ _lt_a href_eq__qt_http_dd_//playground.babylonjs.com/#BIYF2R%232_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//playground.babylonjs.com/#BIYF2R#2_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou of course would have to take into account distance from walls_co_ etc.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAs for trigger volumes_co_ _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/17943-aweirdo/?do_eq_hovercard_qt_ data-mentionid_eq__qt_17943_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/17943-aweirdo/_qt_ rel_eq__qt__qt__gt_@aWeirdo_lt_/a_gt_ had a good suggestion in this issue if it works for you_dd_ \n_lt_/p_gt_\n_lt_iframe allowfullscreen_eq__qt__qt_ data-controller_eq__qt_core.front.core.autosizeiframe_qt_ data-embedcontent_eq__qt__qt_ data-embedid_eq__qt_embed2174585009_qt_ scrolling_eq__qt_no_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/topic/26483-solved-the-box-for-a-trigger-zone/?do_eq_embed_qt_ style_eq__qt_height_dd_221px_sm_max-width_dd_502px_sm__qt__gt__lt_/iframe_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":"nogalo","Date":"2018-10-26T17:41:09Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tWow_co_ thank you _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/30070-kcoley/?do_eq_hovercard_qt_ data-mentionid_eq__qt_30070_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/30070-kcoley/_qt_ rel_eq__qt__qt__gt_@kcoley_lt_/a_gt_ for fast response. This is what I needed. Works perfectly. _lt_br /_gt_\n\t_lt_br /_gt_\n\tHave a good one. Cheers\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_"}]