Browse Source

Update models_yaw_pitch_roll.c

pull/1683/head
Ray 3 years ago
parent
commit
c6828070dc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      examples/models/models_yaw_pitch_roll.c

+ 2
- 1
examples/models/models_yaw_pitch_roll.c View File

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

Loading…
Cancel
Save