From e1f27e3fa0841beee491948ab1572e2cd894dbd8 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 11 Jun 2022 23:16:37 +0200 Subject: mouse is captured again, pretty gud --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 94e3f97..0ec23c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,15 @@ int main(void) { // setup camera SetTargetFPS(60); + SetCameraMode(sc3d.camera, CAMERA_FIRST_PERSON); + sc3d.camera.position = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.target = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.up = (Vector3){0.0f, 1.0f, 0.0f}; + sc3d.camera.fovy = 90.0f; + sc3d.camera.projection = CAMERA_PERSPECTIVE; + + sc3d.rotation = (Vector3){0.0f, 0.0f, 0.0f}; + sc3d.lastMousePos = GetMousePosition(); // game loop while (!WindowShouldClose()) { switch (game_state) { -- cgit v1.2.3