Hi, i'm making a game with a lot of bodies loaded dinamically, so I cannot control easily them
but sometimes the game got stuck from this exception:
This happen SOMETIMES when i try to create some body, what could be the problem?
oh the only difference from the created bodies is the position.
and some times I got another strange error, when i launch world.query to know what object are near a body
and i get the some error:
when it happens, I think it's made only (i suppose) from static bodies, and it appear in my GUI as a missing piece of the wall or the floor
what can generate this kind of error?? thx!
but sometimes the game got stuck from this exception:
Code:
Exception in thread "Thread principale" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jbox2d.collision.BroadPhase.query(BroadPhase.java:778)
at org.jbox2d.collision.BroadPhase.createProxy(BroadPhase.java:254)
at org.jbox2d.collision.Shape.createProxy(Shape.java:302)
at org.jbox2d.dynamics.Body.createShape(Body.java:205)
at org.jbox2d.collision.BroadPhase.query(BroadPhase.java:778)
at org.jbox2d.collision.BroadPhase.createProxy(BroadPhase.java:254)
at org.jbox2d.collision.Shape.createProxy(Shape.java:302)
at org.jbox2d.dynamics.Body.createShape(Body.java:205)
This happen SOMETIMES when i try to create some body, what could be the problem?
oh the only difference from the created bodies is the position.
and some times I got another strange error, when i launch world.query to know what object are near a body
and i get the some error:
Code:
Exception in thread "Thread principale" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jbox2d.collision.BroadPhase.query(BroadPhase.java:778)
at org.jbox2d.collision.BroadPhase.query(BroadPhase.java:778)
when it happens, I think it's made only (i suppose) from static bodies, and it appear in my GUI as a missing piece of the wall or the floor
what can generate this kind of error?? thx!