small update

This commit is contained in:
Wiktoria Grzesik 2024-01-28 16:53:25 +01:00
parent c929abb6af
commit 8f3ea06e20
1 changed files with 0 additions and 8 deletions

View File

@ -85,7 +85,6 @@ unsigned int textureID;
float tiltAngle=0;
double easeInExpo(double x) {
return pow(2, 10 * x - 10);
}
@ -453,8 +452,6 @@ void processInput(GLFWwindow* window)
if (tiltAngle < 0) {
tiltAngle += 0.0005;
}
}
if (glfwGetKey(window, GLFW_KEY_D) == GLFW_PRESS) {
spaceshipDir = glm::vec3(glm::eulerAngleY(-angleSpeed) * glm::vec4(spaceshipDir, 0));
@ -463,7 +460,6 @@ void processInput(GLFWwindow* window)
if (tiltAngle > 0) {
tiltAngle -= 0.0005;
}
}
if (glfwGetKey(window, GLFW_KEY_G) == GLFW_PRESS)
START_AS = true;
@ -475,10 +471,6 @@ void processInput(GLFWwindow* window)
tiltAngle = fmaxf(-1, fminf(1, tiltAngle));
// dodać else, że jak klawisz A/D nie wciśnięty to się prostuje
//niech ta funkcja easinexpo zadziała pls
//cameraDir = glm::normalize(-cameraPos);