I am trying to make the image move rather than a geometric shape in jbox2d. I dont see the image .
BodyDef bodyDef =new BodyDef();
bodyDef.position.set(100,100);
bodyDef.type=BodyType.DYNAMIC;
//texture=TextureLoader.getTexture("PNG",ResourceLoader.getResourceAsStream("resources/small.png"));
BufferedImage img = null;
try {
img = ImageIO.read(new File("resources/small.png"));
} catch (IOException e) {
}
bodyDef.userData=img;