From 8babdb89bbcef309cf4774ad1120851367e76705 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Thu, 3 Jan 2019 11:32:18 -0500 Subject: [PATCH] Removed creative camera --- src/main.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d2f3a8f..d3bc532 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -529,15 +529,11 @@ int main(int argc, char** argv) { player_vx -= sin(glm::radians(-rot_y_deg)) * acceleration; player_vz -= cos(glm::radians(-rot_y_deg)) * acceleration; - - player_vy -= sin(glm::radians(-rot_x_deg)) * acceleration; } else if (keys[SDL_SCANCODE_S]) { player_vx += sin(glm::radians(-rot_y_deg)) * acceleration; player_vz += cos(glm::radians(-rot_y_deg)) * acceleration; - - player_vy += sin(glm::radians(-rot_x_deg)) * acceleration; } if (keys[SDL_SCANCODE_A]) @@ -551,21 +547,6 @@ int main(int argc, char** argv) player_vz += cos(glm::radians(-rot_y_deg + 90.0f)) * acceleration; } - if (keys[SDL_SCANCODE_SPACE]) - { - player_vy -= acceleration; - } - else if (keys[SDL_SCANCODE_LSHIFT]) - { - player_vy += acceleration; - } - - // Multiply the player's velocity by the player's friction constant. - - player_vx *= friction; - player_vy *= friction; - player_vz *= friction; - // Create a list of hitboxes of nearby blocks. std::vector near_hitboxes;