From 75a4e031da0252c51673b81653507c09788efccd Mon Sep 17 00:00:00 2001 From: Neckrat Date: Fri, 1 Aug 2025 02:00:58 +0300 Subject: [PATCH] update camera Co-authored-by: Ivan Yuriev --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 1b1cc26..8c87fb2 100644 --- a/main.lua +++ b/main.lua @@ -22,7 +22,7 @@ function Camera:update(dt) local mouse_offset = Vec3 { 0, 0, 0 } local offset_distance = 0 - local adjusted_target = self.target * (self.max_offset * offset_distance / self.max_offset_distance) + local adjusted_target = self.target * (self.max_offset * offset_distance / self.max_offset_distance) local to_target = adjusted_target - self.position self.position = self.position + to_target * (dt * self.lerp_speed)