~ | Fixing path

This commit is contained in:
TheRedShip
2025-02-22 17:51:59 +01:00
committed by tomoron
parent 4b32b3b19f
commit fab9bead64
3 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;