Skip to content

Commit

Permalink
improve orbit cam
Browse files Browse the repository at this point in the history
  • Loading branch information
gue-ni committed Feb 23, 2023
1 parent ae71338 commit 6ddead9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenGL_Flightsim/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ int main(void)


// SDL options
SDL_ShowCursor(SDL_TRUE);
SDL_ShowCursor(SDL_FALSE);
SDL_CaptureMouse(SDL_TRUE);
SDL_SetRelativeMouseMode(SDL_FALSE);
SDL_SetRelativeMouseMode(SDL_TRUE);

ImGui_ImplSDL2_InitForOpenGL(window, context);
ImGui_ImplOpenGL3_Init();
Expand Down Expand Up @@ -294,7 +294,7 @@ int main(void)
camera.set_position(player_aircraft.rigid_body.position);
camera.set_rotation({0, glm::radians(-90.0f), 0.0f});

gfx::OrbitController controller(20.0f);
gfx::OrbitController controller(30.0f);

SDL_Event event;
bool quit = false, paused = false, orbit = false;
Expand Down

0 comments on commit 6ddead9

Please sign in to comment.