In LibGDX I have few sprites that all have set position (0,0). So in theory they all should render in one place on top of each other but what ends up happening is that all the sprites are being rendered in different spot on screen. For all sprites objects all I do is:
Sprite sprite = new Sprite(new Texture("texture.png")); sprite.setOriginCenter(); sprite.setScale(1/PPM);
And then when rendering it:
batch.begin(); sprite.draw(batch) ... batch.end();
And here is what I get:
rocket sprite is in completely different place than fire sprite and some other sprites I couldn't even find. I marked "real" 0,0 point with yellow circle. So why are does sprites in different spots? I've heard that it could be because of scaling but since I am setting sprite's origin to center it shouldn't be a problem, right?