Physics Body Editor error

前端 未结 2 538
心在旅途
心在旅途 2021-01-27 23:26

I get this error when trying to initialize BodyEditorLoader from this library http://www.aurelienribon.com/blog/projects/physics-body-editor/

    Exception in th         


        
2条回答
  •  悲&欢浪女
    2021-01-27 23:54

    to see the code where it is called, but I venture to say that the problem is the call to your world this must be called before here's an example:

    This a example compile good:

        oWorld = new World(gravedad, dormir);
        loader = new BodyEditorLoaderNewW(
                 Gdx.files.internal("data/test.json"));
    

    This a example not compile good:

        loader = new BodyEditorLoaderNewW(
                 Gdx.files.internal("data/test.json"));
        oWorld = new World(gravedad, dormir);
    

    recive this:

    java.lang.UnsatisfiedLinkError: com.badlogic.gdx.physics.box2d.PolygonShape.newPolygonShape () J

    note the difference in the world is called one after so gives:

    it is possible that in the future can, need this: BodyEditorLoader - noSuchMethod

    but if this is not the solution you could put some of the code, I hope you help

提交回复
热议问题