Body b;
while ((b=box2d.physics.PhysicssWorld.world.getBodyList().getNext())!=null) {
Shape shape;
while ((shape=b.getShapeList().getNext())!=null) {
Log.e("name",""+b.getUserData().toString()+" "+shape+" ");
opengl.saveMatrix();
Meshes.select(b.getUserData().toString())
.translate((b.getPosition().x)*RATIO, (b.getPosition().y)*RATIO)
.rotate((int) ((int) b.getAngle()* (180/Math.PI)), 0, 0, 1)
.draw(shape, 1,1,1);
opengl.loadMatrix();
}
}
Je tiens à le faire ma forme de corps, mais je ne peux pas obtenir quoi que ce soit, seul null .. pourquoi?Box2D obtenir la forme de mes corps
ne jamais exécuter cette ligne: Log.e ("nom", "" + b.getUserData(). ToString() + "" + shape + "");
si la forme = b.getShapeList(). GetNext()) toujours nul ...