text: [{"Owner":"csganja","Date":"2017-03-08T15:31:18Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tAny reason why the intersectsMesh is triggered on the red line area and not on the green line (as would be normal i guess)?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a class_eq__qt_ipsAttachLink ipsAttachLink_image_qt_ data-fileid_eq__qt_11918_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/uploads/monthly_2017_03/Untitled-1.png.dcba641d8472a7e286741021462995d4.png_qt_ rel_eq__qt__qt__gt__lt_img alt_eq__qt_Untitled-1.thumb.png.782066ed43f5660cc439ec1eff630017.png_qt_ class_eq__qt_ipsImage ipsImage_thumbnailed_qt_ data-fileid_eq__qt_11918_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/monthly_2017_03/Untitled-1.thumb.png.782066ed43f5660cc439ec1eff630017.png_qt_ /_gt__lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tJust using a simple code_co_ nothing fancy... No physics engine...\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_// skillMesh - fireball thing\n// m - monster\nscene.registerBeforeRender(function() {\n    if (skillMesh.intersectsMesh(m_co_ false)) {\n        // do your job [call hit()_co_ unregister this e.t.c.]\n        console.log(_qt_hit_qt_)_sm_\n    }\n    else {\n        // set skillMesh.position\n    }\n}_lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tEdit1_dd_ Played a bit more and rotated the mesh_co_ the collision area is still in the back of monster_co_ Could be a mesh problem? \n_lt_/p_gt_\n\n_lt_p_gt_\n\tEdit.2 Replaced my monster with a sphere and collision works fine_co_ i can_t_t see the problem on my mesh...\n_lt_/p_gt_\n\n_lt_p_gt_\n\tEdit3_dd_ Solved_co_ i have no idea how this helped but i change the rest pose and it_t_s fine now\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":"Deltakosh","Date":"2017-03-09T00:19:54Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHey_co_ it is always interesting to display bounding boxes in this case (mesh.showBoundingBox _eq_ true).\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThe intersection check is also done on the rest pose only (as the bones are only computed on GPU side).\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_"}]