Currently, _set_limit_clamp_position() returns a Vector2i when a limit target is applied, resulting in target_position always being truncated to an integer. This, without any follow_damping, results in the truncated target_position propagating to the camera's global_position on line 577, possibly causing misalignment between the camera and the node it's following, which can be at float x and y values.
This pr simply changes the return type to Vector2, leaving any logic intact.
Currently,
_set_limit_clamp_position()
returns aVector2i
when alimit target
is applied, resulting intarget_position
always being truncated to an integer. This, without anyfollow_damping
, results in the truncatedtarget_position
propagating to the camera'sglobal_position
on line 577, possibly causing misalignment between the camera and the node it's following, which can be at float x and y values.This pr simply changes the return type to
Vector2
, leaving any logic intact.