What the difference vector between in RectangleShape2D extents and rect size control?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By molesallegiance

I got this case where I want to fill my Area2D to be the same size of the VBoxContainer. So I set the extents of the collision shape to be the same as VBoxContainer.rect_size. But the collision shape seems to be bigger even though the extents and rect size is the same vector.

:bust_in_silhouette: Reply From: molesallegiance

Answer for future me and anyone who reads.

When you hover over extents property it reads “the width and height of the shape is twice of the extents.” So rect_size property in the above the extents should be (85, 85).

enter image description here