You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[3.4] When limit smoothing and smoothing are enabled simultaneously and the Camera2D is outside of the limits, there is a one frame delay before the smoothing starts.
#56913
Closed
MewPurPur opened this issue
Jan 18, 2022
· 2 comments
· Fixed by #63083
When Camera2D has limit smoothing enabled, smoothing enabled, and is outside of the limits, it starts sliding to the new limits one frame late.
This behavior did not exist in 3.3, since the camera would always immediately snap into the limits in that version, which was changed in #49409
It also does not occur for smoothing in general, even if Camera2D has the same properties. If position is changed and then reset_smoothing is called in the same function, the camera will immediately slide there. The behavior outside of limits is inconsistent in this regard.
Steps to reproduce
Create a Camera2D and set its limits to small numbers
Enable Limit Smoothing and Smoothing
Move the Camera2D outside of the limits.
Run the project
Since it's just a one frame delay, to make the bug visible would take a bit more, in my minimal reproduction project I did the following:
Create a script
Call reset_smoothing on the Camera2D
Pause the tree in the same function to see the delay.
Minimal reproduction project
Camera issue.zip
(Comment and uncomment the line that pauses the tree to see the jump clearly)
The text was updated successfully, but these errors were encountered:
Godot version
3.4.stable
System information
Ubuntu 20.04.3 LTS
Issue description
When Camera2D has limit smoothing enabled, smoothing enabled, and is outside of the limits, it starts sliding to the new limits one frame late.
This behavior did not exist in 3.3, since the camera would always immediately snap into the limits in that version, which was changed in #49409
It also does not occur for smoothing in general, even if Camera2D has the same properties. If position is changed and then reset_smoothing is called in the same function, the camera will immediately slide there. The behavior outside of limits is inconsistent in this regard.
Steps to reproduce
Since it's just a one frame delay, to make the bug visible would take a bit more, in my minimal reproduction project I did the following:
Minimal reproduction project
Camera issue.zip
(Comment and uncomment the line that pauses the tree to see the jump clearly)
The text was updated successfully, but these errors were encountered: