feat: add Phase 20a stage identities and overlap selection

This commit is contained in:
2026-10-26 15:10:28 -04:00
parent 0cc882ef4b
commit 35eb0e2503
74 changed files with 3854 additions and 217 deletions
+5 -4
View File
@@ -116,11 +116,12 @@ func _test_stage_prop_drag_and_rotation() -> void:
var rect: Rect2 = STAGE_SELECTION.get_world_aabb(prop)
var center: Vector2 = rect.get_center()
var radius: float = stage._gizmos._rotate_ring_radius(rect)
press.position = canvas * (center + Vector2(radius, 0.0))
var rotate_handle: Vector2 = stage._gizmos._rotate_handle_position(rect)
var starting_vector: Vector2 = rotate_handle - center
press.position = canvas * rotate_handle
stage._handle_world_click(press)
_check(stage._gizmos.is_dragging(), "prop rotation ring begins a rotate drag")
motion.position = canvas * (center + Vector2(0.0, radius))
_check(stage._gizmos.is_dragging(), "prop rotation handle begins a rotate drag")
motion.position = canvas * (center + starting_vector.rotated(PI * 0.5))
motion.relative = motion.position - press.position
stage._input(motion)
release.position = motion.position