Hi, I'm trying to follow the formula for zooming towards a point here https://godotengine.org/qa/25983/camera2d-zoom-position-towards-the-mouse but instead of the mouse, it's the center point between two drags.
The formula (similar to the link's formula) is this:
position -= (to_local(center_point) - window/2) / (3/4) * (resd)
The reason for why i used tolocal is because the centerpoint is in global position.
But after printing tolocal(centerpoint), the result is this
Why did this happen? The Script is attached to a Camera2D and the version is Godot v3.2.2 anyways