text: [{"Owner":"veggis","Date":"2017-11-01T10:38:08Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI_t_ve been looking for a framework for an idea i have. I want to create a 2d platformer with 3d objects for web and mobile.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tBabylon is attractive_co_ but i_t_m unsure if there are any physics engine that can handle constraints and also suitable for a platformer in that way.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAny ideas?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIs unity the best way to go here?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt_ /_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":"RaananW","Date":"2017-11-01T12:52:19Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tIf everything_t_s missing is a physics engine_co_ we do have it. But those are 3d physics engine (oimo and cannon.js). There are many 2D physics engines_co_ but they need to be integrated with the framework (or be integrated externally)_co_ and you will also need to make sure the _qt_3d dimension_qt_ is staying constant_co_ so it will eventually stay 2D.\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":"Raggar","Date":"2017-11-02T00:05:23Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYou might be able to use a 2D physics-engine like the following(p2.js)_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//jsfiddle.net/oagn4jvz/2/_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//jsfiddle.net/oagn4jvz/2/_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tFirst time trying out p2.js_co_ so it does have some odd behavior. WAD to jump/left/right.\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":"vtange","Date":"2017-11-02T02:58:28Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI would take my time and look at 2D game engines first if you_t_re thinking anything along the lines of focusing on sprites that move in a X-Y plane. IMHO using Babylon.js for a 2.5D game like what_t_s discussed here _lt_a href_eq__qt_http_dd_//www.html5gamedevs.com/topic/22268-25d-beat-em-up-jump/_qt_ rel_eq__qt__qt__gt_http_dd_//www.html5gamedevs.com/topic/22268-25d-beat-em-up-jump/_lt_/a_gt_ would be overkill since you_t_re not taking advantage of a lot of what BJS has to offer.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIf you_t_re thinking something like Super Mario 3D world but you only move in 2 directions Left Right Jump/etc. then yeah it_t_s pretty much oimo_co_ cannon or the default.\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":"Raggar","Date":"2017-11-02T16:31:06Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHere_t_s Schteppe_t_s Platformer example with BabylonJS(top) and Canvas(bottom).\n_lt_/p_gt_\n\n_lt_p_gt_\n\tOnce again WAD to jump/left/right.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//jsfiddle.net/oagn4jvz/6/_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//jsfiddle.net/oagn4jvz/6/_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tSo it is certainly doable. But whether or not it_t_s better than simply limiting z-axis velocity/position in a 3D physics-engine. Well. I have no idea.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIt_t_s a bit messy_co_ and uses 2 separate loops_co_ but you get the idea.\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":"veggis","Date":"2017-11-02T19:21:26Z","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/22713-raggar/?do_eq_hovercard_qt_ data-mentionid_eq__qt_22713_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/22713-raggar/_qt_ rel_eq__qt__qt__gt_@Raggar_lt_/a_gt_ _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/28964-vtange/?do_eq_hovercard_qt_ data-mentionid_eq__qt_28964_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/28964-vtange/_qt_ rel_eq__qt__qt__gt_@vtange_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tGreat examples! This is definetity what i_t_m looking for.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_m thinking it would probably be easier to implement it with a 3d phsyics engine. But probably better performance wise with something like p2. Im not sure.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks everyone!\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":"pf17","Date":"2017-11-03T11:58:12Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\t  _lt_span lang_eq__qt_en_qt_ xml_dd_lang_eq__qt_en_qt__gt__lt_span_gt_I read somewhere from a 2d camera or 2d layer_co_ is there such a thing in babylonjs?_lt_/span_gt_ _lt_span_gt_or I have to build myself_lt_/span_gt_?_lt_/span_gt__lt_br /_gt__lt_br /_gt__lt_span lang_eq__qt_en_qt_ xml_dd_lang_eq__qt_en_qt__gt__lt_span_gt_2d camera  would be great for my project_lt_/span_gt__lt_/span_gt_.\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_"}]