user3330053
user3330053

Reputation: 173

libgdx camera combined coordinate system

In the render() method I've set my camera to camera.combined, but now I've noticed that everything is reversed. My sprites are reversed. How can I flip the camera or something?

public void render() {
    batch.setProjectionMatrix(cam.combined);
}

Upvotes: 2

Views: 387

Answers (1)

jpm
jpm

Reputation: 1083

The problem is with your yDown

cam.setToOrtho(yDown, viewportWidth, viewportHeight)

set yDown = true

Upvotes: 2

Related Questions