Quick answer: Godot Control anchor preset moving the node to the wrong spot after you rotate it? Anchors operate on the un-rotated rect — set pivot_offset and re-apply layout after rotation.

Applying “Full Rect” preset on a rotated panel snaps it to a wonky position. Anchor presets use the rect, not the rotated AABB.

Anchors Operate on the Rect

Anchor presets set anchor_left, anchor_top, etc. relative to parent. The Control’s rect is computed from these anchors — before rotation. Rotation visually transforms the rendered output but doesn’t affect the layout rect.

Set Pivot Offset

panel.pivot_offset = panel.size / 2
panel.rotation = deg_to_rad(15)

Rotate around the center so the apparent position stays put.

Re-Apply Layout

If you change anchors after rotating, call queue_redraw() or re-set layout_mode. The editor sometimes shows stale positions until the next frame.

Verifying

Rotated UI panels stay in their intended anchor region. Anchor preset changes update positions cleanly.

“Anchors apply to the un-rotated rect. Set pivot_offset for visual rotation.”

Don’t rotate gameplay-critical UI — reserve rotation for decorative elements where layout precision matters less.