What's the zoom in and zoom expected behaviour?

Godot Version

4.4.1

Question

When I go to Camera2D Inspector, and do zoom: 3,3. When I run the game, it zooms IN not OUT - is this expected behaviour?

Here’s my project settings:

The camera inspector (partial screenshot):

I’m just starting a project and don’t have any CameraManager.gd scripts or anything of the sorts.

I’m on Mac.
HiDPI is On.

Please, let me know if more details are needed, and thank you for your time.

In Camera2D, zoom is the scale factor. If you set it to (2.0, 2.0) it will double the size of everything. If you set it to (0.5, 0.5) it will halve the size of everything.

Thank you @hexgrid. I guess ChatGPT was lying to me, saying that the zoom worked the opposite way. Thanks for helping. Will continue. And it does make way more sense that 0.5 would be half, and 2.0 double. Cheers! Let’s continue! :smile:

I wouldn’t advise relying too much on AI, for a variety of reasons. This is one of them; it will just outright lie to you with absolute confidence.

If you check the official docs, it says:

The camera’s zoom. A zoom of Vector(2, 2) doubles the size seen in the viewport. A zoom of Vector(0.5, 0.5) halves the size seen in the viewport.

It’s worded too ambiguously to tell what it even means, which probably why any AI that it’s fed into wouldn’t know what it means. I don’t even know what it means by reading it.