~ | Fixing path

This commit is contained in:
TheRedShip
2025-02-22 17:51:59 +01:00
parent f3fe25b6b1
commit d7b33309d8
4 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ int Camera::portalTeleport(Scene *scene, float delta_time, Renderer &renderer)
float distance_future_pos = glm::length(future_pos - _position);
float distance_portal = glm::length(point_projected - _position);
float imprecision = 0.1f;
float imprecision = 0.101f;
if (distance_portal <= distance_future_pos && glm::dot(glm::normalize(future_pos - _position), obj.normal) > 0.0f)
{
std::cout << "Teleport" << std::endl;