Skip to content

Commit

Permalink
Fixed auto_follow_distance (#276)
Browse files Browse the repository at this point in the history
* fixed follow_distance being set when it should be auto_follow_distance

* fix clamp in auto follow distance
  • Loading branch information
TCROC authored Apr 30, 2024
1 parent ad2e90a commit 056d59a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ func _process(delta: float) -> void:

var distance: float
if auto_follow_distance:
follow_distance = lerp(auto_follow_distance_min, auto_follow_distance_max, bounds.get_longest_axis_size() / auto_follow_distance_divisor)
follow_distance = clamp(follow_distance, auto_follow_distance_min, auto_follow_distance_max)
distance = lerp(auto_follow_distance_min, auto_follow_distance_max, bounds.get_longest_axis_size() / auto_follow_distance_divisor)
distance = clamp(distance, auto_follow_distance_min, auto_follow_distance_max)
else:
distance = follow_distance

Expand Down

0 comments on commit 056d59a

Please sign in to comment.