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[Node2D]

get_all_node() const

Array[Vector2]

get_all_position() const

Array[QueryItem2D]

get_all_results() const

Node2D

get_highest_score_node() const

Vector2

get_highest_score_position() const

Node2D

get_top_random_node(percent: float = 0.1) const

Vector2

get_top_random_position(percent: float = 0.1) const

bool

has_result()


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!