java - Box2d with AndEngine exception creating fixture -
I am using AndEngine with Box2D extension, and when my game loads its map, sometimes it crashes (Yes, only sometimes. It looks so random for me) and it looks like detection:
# 00 pc 0040180 / data /app-lib/com.sergio Game-2 / libandenginephysicsbox2dextension.so (B2Body :: CreateFixture (b2FixtureDef const *) + 8) # 01 pc 0000c408 /data/app-lib/com.sergio.game-2/libandenginephysicsbox2dextension.so (Java_com_badlogic_gdx_physics_box2d_Body_jniCreateFixture__JJFFFZSSS + 112) # 02 pc 0001dbcc / system / lib / libdvm (dvmPlatfor MInvoke + 112) # 03 PC 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod (unsigned int constant *, JValue *, method constant *, thread *) + 398) # 04 pc 00,000,214 / dev / ashmem / dalvik-jit- Code-cache (deleted)
This will not tell me what's actually crashing, and I do not know where it's on. I make the body and fixtures as always:
Any ideas?
From my experience, repeated problems with many fixtures in box2d:
- Invalid curved order;
- No convex polygon;
- Very small size of size When the distance between many points is very low, then box 2D assumes that they are a point. This is why the box 2D can interpret a triangle as a line, for example, which is not acceptable (polygon should have at least 3 digits).
Check if all of your fixtures always math these rules seem like you are randomly creating fixtures, and perhaps some fixtures are described Become invalid in the sense.
Comments
Post a Comment