reverted accidental unrelated change

This commit is contained in:
Brian-E 2023-09-27 14:49:36 +01:00
parent d2d87c6086
commit b9fe7a4aa0

View File

@ -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);