Separating Axis Theorem + OpenGL rotation

Hello everybody :slight_smile:

I finally got SAT working but only if I leave out the roation part from OpenGL. My Player object rotates around his own axis


			GL11.glTranslatef(player.x-player.width/2, player.y-player.height/2, 0f);
			GL11.glRotatef(player.angle, 0f, 0f, 1f);
			GL11.glTranslatef(-player.x-player.width/2, -player.y-player.width/2, 0f);

Works great so far. But the collision detection does not recognize that the polygon (trapez) has rotated.
How do I connect my SAT collision detection with the angle my polygon has rotated?

This is how I go forward:

				
player.y += speed * delta * Math.sin(Math.toRadians(player.angle) - Math.PI/2);
player.x += speed * delta * Math.cos(Math.toRadians(player.angle) - Math.PI/2);

I really need your help :slight_smile: thanks in advance