the object rotates a lot when using joml

I just found out what the problem is.

This where my quad coordinates:

float[] vertices = {
        -0.5f, 0.5f, -1f,
        -0.5f, -0.5f, -1f,
        0.5f, -0.5f, -1f,
        0.5f, 0.5f, -1f
};

So i changed them to:

float[] vertices = {
        -0.5f, 0.5f, 0f,
        -0.5f, -0.5f, 0f,
        0.5f, -0.5f, 0f,
        0.5f, 0.5f, 0f
};

And it FINALLY worked but no idea why.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top