浏览代码

Update models_yaw_pitch_roll.c

Ray 4 年之前
父节点
当前提交
c6828070dc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/models/models_yaw_pitch_roll.c

+ 2 - 1
examples/models/models_yaw_pitch_roll.c

@@ -21,6 +21,7 @@ int main(void)
     const int screenWidth = 800;
     const int screenHeight = 450;
 
+    //SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_HIGHDPI);
     InitWindow(screenWidth, screenHeight, "raylib [models] example - plane rotations (yaw, pitch, roll)");
 
     Camera camera = { 0 };
@@ -74,7 +75,7 @@ int main(void)
         }
 
         // Tranformation matrix for rotations
-        model.transform = MatrixRotateXYZ((Vector3){DEG2RAD*pitch,DEG2RAD*yaw,DEG2RAD*roll});
+        model.transform = MatrixRotateXYZ((Vector3){ DEG2RAD*pitch, DEG2RAD*yaw, DEG2RAD*roll });
         //----------------------------------------------------------------------------------