diff --git a/src/rcore.c b/src/rcore.c index 18d367250..5477741f2 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2922,7 +2922,7 @@ Matrix GetCameraMatrix2D(Camera2D camera) // 2. Rotate and Scale // 3. Move by -target Matrix matOrigin = MatrixTranslate(-camera.target.x, -camera.target.y, 0.0f); - Matrix matRotation = MatrixRotateZ(-camera.rotation*DEG2RAD); + Matrix matRotation = MatrixRotate((Vector3){ 0.0f, 0.0f, 1.0f }, camera.rotation*DEG2RAD); Matrix matScale = MatrixScale(camera.zoom, camera.zoom, 1.0f); Matrix matTranslation = MatrixTranslate(camera.offset.x, camera.offset.y, 0.0f);