QueryContext2D
Inherits: Node2D
Inherited By: ContextInGroup2D, ContextQuerier2D, ContextQueryItems2D, ContextTargetArray2D, ContextTargetNode2D
Acts as a reference for QueryGenerator2Ds and QueryTest2Ds, providing Node2Ds and/or Vector2s in an Array.
Description
Acts as a reference for QueryGenerator2Ds and QueryTest2Ds, providing Node2Ds and/or Vector2s in an Array.
Methods
|
_get_context(query_instance: QueryInstance2D) virtual required const |
|
get_context(query_instance: QueryInstance2D) |
Array[ |
get_context_nodes(query_instance: QueryInstance2D) |
|
get_context_positions(query_instance: QueryInstance2D) |
Method Descriptions
Array _get_context(query_instance: QueryInstance2D) virtual required const 🔗
Called on QueryGenerator2Ds and QueryTest2Ds to get a list of Node2Ds and/or Vector2s.
Note: Must be overrwritten.
Array get_context(query_instance: QueryInstance2D) 🔗
Called on QueryGenerator2Ds and QueryTest2Ds to get a list of Node2Ds and/or Vector2s.
Array[Node2D] get_context_nodes(query_instance: QueryInstance2D) 🔗
There is currently no description for this method. Please help us by contributing one!
PackedVector2Array get_context_positions(query_instance: QueryInstance2D) 🔗
Returns only the positions of each context. Used in some QueryTest2Ds where collisions aren't needed.