feat: add Phase 20a stage identities and overlap selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user