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)