diff --git a/vfx/gameplay_camera.gd b/vfx/gameplay_camera.gd index acafd26..3bdddf4 100644 --- a/vfx/gameplay_camera.gd +++ b/vfx/gameplay_camera.gd @@ -135,7 +135,7 @@ func _follow_target( global_position, desired_position, 1.0 - (1.0 - follow_lerp_speed)**delta )) - if abs(_gimbal_check()) <= lerp(gimbal_margin, 1.0, 0.5): + if !is_zero_approx(1.0 - abs(_gimbal_check())): var desired_basis := Basis.looking_at( target_offset - leveling, target.global_basis.y