small update
This commit is contained in:
parent
c929abb6af
commit
8f3ea06e20
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user