+ | Portal viewing angle teleportation

This commit is contained in:
TheRedShip
2025-02-06 00:16:25 +01:00
parent 844b072089
commit d3dbf8f959
10 changed files with 72 additions and 27 deletions

View File

@ -134,7 +134,7 @@ void Window::keyCallback(GLFWwindow *window, int key, int scancode, int action,
}
}
void Window::display()
void Window::updateDeltaTime()
{
static double lastTime = glfwGetTime();
double currentTime = glfwGetTime();
@ -146,6 +146,12 @@ void Window::display()
if (accumulate)
_frameCount++;
}
void Window::display()
{
if (accumulate)
_frameCount++;
if (_scene->getCamera()->getVelocity() > 0.0f)
_frameCount = 0;