From bffb4884466c06054df2a84348ca3923dc8055d9 Mon Sep 17 00:00:00 2001 From: Just-Random-Dev Date: Sun, 20 Oct 2024 12:41:02 +0200 Subject: [PATCH] Make camera go up and down properly and ignore missing pdb warning --- ScuffedMinecraft/ScuffedMinecraft.vcxproj | 2 ++ ScuffedMinecraft/src/Camera.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ScuffedMinecraft/ScuffedMinecraft.vcxproj b/ScuffedMinecraft/ScuffedMinecraft.vcxproj index 1461acf..0a87fb3 100644 --- a/ScuffedMinecraft/ScuffedMinecraft.vcxproj +++ b/ScuffedMinecraft/ScuffedMinecraft.vcxproj @@ -130,6 +130,7 @@ Console true glfw3.lib;opengl32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies) + /ignore:4099 %(AdditionalOptions) @@ -148,6 +149,7 @@ true true glfw3.lib;opengl32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies) + /ignore:4099 %(AdditionalOptions) diff --git a/ScuffedMinecraft/src/Camera.cpp b/ScuffedMinecraft/src/Camera.cpp index 1b2ddf2..621906a 100644 --- a/ScuffedMinecraft/src/Camera.cpp +++ b/ScuffedMinecraft/src/Camera.cpp @@ -38,9 +38,9 @@ void Camera::ProcessKeyboard(Camera_Movement direction, float deltaTime) if (direction == RIGHT) Position += Right * velocity; if (direction == UP) - Position += Up * velocity; + Position.y += 1 * velocity; if (direction == DOWN) - Position -= Up * velocity; + Position.y -= 1 * velocity; if (direction == FORWARD_NO_Y) { glm::vec3 moveDir = Front;