QueryResult2D
Inherits: RefCounted
Provides the query results with helper functions to get the best positions.
Description
Provides the query results with helper functions to get the best positions.
Methods
Array[ |
get_all_node() const |
Array[ |
get_all_position() const |
get_all_results() const |
|
|
get_highest_score_node() const |
|
get_highest_score_position() const |
|
get_top_random_node(percent: |
|
get_top_random_position(percent: |
|
Method Descriptions
Array[Node2D] get_all_node() const 🔗
Returns all result Node2Ds within each QueryItem2D in ascending order based on score.
Array[Vector2] get_all_position() const 🔗
Returns result Vector2 position within each QueryItem2D in ascending order based on score.
Array[QueryItem2D] get_all_results() const 🔗
Returns all QueryItem2Ds.
Node2D get_highest_score_node() const 🔗
Returns the highest scoring node.
Vector2 get_highest_score_position() const 🔗
Returns the highest scoring position.
Node2D get_top_random_node(percent: float = 0.1) const 🔗
Returns a random node from the top percent from a range of 0-1.
Vector2 get_top_random_position(percent: float = 0.1) const 🔗
Returns a random position from the top percent from a range of 0-1.
bool has_result() 🔗
There is currently no description for this method. Please help us by contributing one!