This sample demonstrates how you could set up input handling for static bodies to support Drag & Drop.
It is strongly related to my other sample on Drag & Drop between Control
and Node2D
nodes.
However, this sample focuses on setting the InputEvent
as "handled" instead.
👉 link to the most interesting file
Be warned! This repository:
- Was created while learning Godot 4, and is not "expert advice";
- Will likely not be kept up to date;
- Might have differences for Godot 3.x and earlier;
Still, it might help someone!
This is what it should do: