[{"data":1,"prerenderedAt":161},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_interaction/gginteractor2d":3,"navigation":89},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"_id":8,"navigation":6,"addon":5,"version":9,"brief_description":10,"description":11,"tutorials":7,"methods":12,"members":51,"signals":76,"constants":82,"inherits":83,"name":84,"title":84,"_source":85,"_file":86,"_stem":87,"_extension":88},"/reference/2.0/gg_interaction/gginteractor2d","gg_interaction",false,"","content:40.reference:2.0:gg_interaction:GGInteractor2D.xml","2.0","Allows characters to interact with [GGInteractable2D] components.","The Interactor is an [Area2D] node that uses collisions to detect Interactables. The [method interact] method interacts with the closests [GGInteractable2D].",[13,17,23,31,34,42,47],{"description":7,"name":14,"public":6,"returnType":15,"params":16},"_ready","void",[],{"description":7,"name":18,"public":6,"returnType":15,"params":19},"_process",[20],{"name":21,"type":22},"_delta","float",{"description":24,"name":25,"public":26,"returnType":15,"params":27},"Interact with the [member closest_interactable]. The [param pressed] parameter should be provided with the [method InputEvent.is_pressed] state.","interact",true,[28],{"name":29,"type":30},"pressed","bool",{"description":7,"name":32,"public":6,"returnType":15,"params":33},"_do_interact",[],{"description":7,"name":35,"public":6,"returnType":22,"params":36},"_distance_sort",[37,40],{"name":38,"type":39},"interactable1","GGInteractable2D",{"name":41,"type":39},"interactable2",{"description":7,"name":43,"public":6,"returnType":15,"params":44},"_on_area_entered",[45],{"name":46,"type":39},"interactable",{"description":7,"name":48,"public":6,"returnType":15,"params":49},"_on_area_exited",[50],{"name":46,"type":39},[52,56,61,65,68,72],{"name":53,"description":54,"type":55,"setter":7,"getter":7,"public":26},"actor","The node that represents the actor (character) performing the interaction. Usually the scene root, which is the same as the [member Node.owner]. This property can be used by custom [GGInteractable2DStrategy] classes.","Node",{"name":57,"description":58,"type":59,"setter":7,"getter":7,"default":60,"public":26},"interactables","Tracks all interactables within range","GGInteractable2D[]","[]",{"name":62,"description":63,"type":39,"setter":7,"getter":7,"default":64,"public":26},"closest_interactable","The closest interactable, which we'll interact with","null",{"name":66,"description":67,"type":39,"setter":7,"getter":7,"default":64,"public":26},"active_interactable","During interaction, keeps track of the active interactable",{"name":69,"description":70,"type":30,"setter":7,"getter":7,"default":71,"public":6},"_pressed","Track whether the interaction action is pressed","false",{"name":73,"description":74,"type":30,"setter":7,"getter":7,"default":75,"public":6},"_handled","Whether the [member _pressed] action has been handled already","true",[77],{"description":78,"name":79,"params":80},"Emitted when the [member closest_interactable] changes.","interactable_changed",[81],{"name":46,"type":39},[],"Area2D","GGInteractor2D","content","40.reference/2.0/gg_interaction/GGInteractor2D.xml","40.reference/2.0/gg_interaction/GGInteractor2D","xml",[90,99,126,146],{"title":91,"_path":92,"children":93},"Getting Started","/getting-started",[94,96],{"title":95,"_path":92},"Introduction",{"title":97,"_path":98},"Installation","/getting-started/installation",{"title":100,"_path":101,"children":102},"Concepts","/concepts",[103,105,108,111,114,117,120,123],{"title":104,"_path":101},"Overview",{"title":106,"_path":107},"Inventory","/concepts/inventory",{"title":109,"_path":110},"Interactions","/concepts/interaction",{"title":112,"_path":113},"Permissions","/concepts/permissions",{"title":115,"_path":116},"Multiplayer","/concepts/multiplayer",{"title":118,"_path":119},"User Interface","/concepts/user-interface",{"title":121,"_path":122},"Game Integration","/concepts/game-integration",{"title":124,"_path":125},"Crafting","/concepts/crafting",{"title":127,"_path":128,"children":129},"Demos","/demos",[130,132,135,138,140,143],{"title":131,"_path":128},"Inventory Tour",{"title":133,"_path":134},"Inventory UI Playground","/demos/inventory_ui",{"title":136,"_path":137},"Inventory Game UI","/demos/inventory_game_ui",{"title":124,"_path":139},"/demos/crafting",{"title":141,"_path":142},"Multiplayer Lobby","/demos/mp_lobby",{"title":144,"_path":145},"Sequencer (prototype)","/demos/sequencer",{"title":147,"_path":148,"children":149},"Guide","/guide",[150,152,155,158],{"title":151,"_path":148},"Architecture Deep Dive",{"title":153,"_path":154},"Design Principles","/guide/design-principles",{"title":156,"_path":157},"Changelog v2.x","/guide/changelog-v2",{"title":159,"_path":160},"Changelog v1.x","/guide/changelog",1743268973412]