Procedural 2d mesh and physics not working... please help

Hello:)
Since some time, I use custom mesh component to generate a 2D mesh, but I never got the physics to work on it. Iwould like to know if there is a way to make procedural box2D actors, in code or in blueprints. It also wont cook the content in my current situation because some kind of out of bound array, that is coming from an unknown function, probably the one where I generate the mesh from an image, but it just works fine in editor… Please help, You are my last hope… I’m starting to get depressed after last month with kind of no progress at all…

Should I rather go to Lib GDX, I have a verry solid java knowledge…