BaseItem.input.set_collision_drag method

set_collision_drag(self, callback: Callable[[], None]) -> None:

Creates a drag interaction on this item to another item, allowing this item to be moved on the surface of other items.

Parameters

  • callback: Callable[[], None]

    function to call when the drag interaction ends