overlapdetector2d - Maybells/celeste-godot-utilities GitHub Wiki
Inherits: Node2D > CanvasItem > Node > Object
Finds an object at a point.
| type | property | default value |
|---|---|---|
| PoolStringArray | detection_groups | [] |
| bool | continuous_detection | False |
| Object | current_overlap | Null |
| return type | method signature |
|---|---|
| null | add_exception(Object exception) |
| null | reset_exceptions() |
| null | force_overlap_update() |
| Object | get_overlap() |
- overlap_changed(from, to)
Called when current overlapping object is different from previous.
- PoolStringArray detection_groups
| _Default_ | `[]` |
|---|
- bool continuous_detection
| _Default_ | `False` |
|---|
- Object current_overlap
The most recent overlapping object
- void add_exception(Object exception)
Adds an exception that will no longer be detected.
- void reset_exceptions()
Removes all exceptions.
- void force_overlap_update()
Recalculates overlap.
- Object get_overlap()
Gets the most recent overlapping object.