QueryTest2D

Inherits: Node2D

Inherited By: TestDistanceTo2D, TestDotProduct2D, TestIntersectsArea2D, TestRaycastTo2D

Tests each QueryItem2D from a QueryGenerator2D to determine which is the best option.

Description

Tests each QueryItem2D from a QueryGenerator2D to determine which is the best option.

Properties

bool

bool_match

true

float

cost

0.0

bool

filter_bool_match

true

float

filter_max

0.0

float

filter_min

0.0

MultipleContextFilterOp

filter_multiple_context_filter_operator

0

FilterType

filter_type

0

bool

score_bool_match

true

float

score_clamp_max

0.0

ScoreClampType

score_clamp_max_type

0

float

score_clamp_min

0.0

ScoreClampType

score_clamp_min_type

0

Curve

score_curve

float

score_factor

1.0

MultipleContextScoreOp

score_multiple_context_score_operator

0

TestPurpose

test_purpose

0

TestType

test_type

0

Methods

void

_perform_test(query_instance: QueryInstance2D) virtual required

void

end_test()


Signals

test_finished() 🔗

There is currently no description for this signal. Please help us by contributing one!


Property Descriptions

bool bool_match = true 🔗

  • void set_bool_match(value: bool)

  • bool get_bool_match()

There is currently no description for this property. Please help us by contributing one!


float cost = 0.0 🔗

  • void set_cost(value: float)

  • float get_cost()

How expensive this test will be to execute.


bool filter_bool_match = true 🔗

  • void set_bool_match(value: bool)

  • bool get_bool_match()

There is currently no description for this property. Please help us by contributing one!


float filter_max = 0.0 🔗

  • void set_filter_max(value: float)

  • float get_filter_max()

There is currently no description for this property. Please help us by contributing one!


float filter_min = 0.0 🔗

  • void set_filter_min(value: float)

  • float get_filter_min()

There is currently no description for this property. Please help us by contributing one!


MultipleContextFilterOp filter_multiple_context_filter_operator = 0 🔗

There is currently no description for this property. Please help us by contributing one!


FilterType filter_type = 0 🔗

There is currently no description for this property. Please help us by contributing one!


bool score_bool_match = true 🔗

  • void set_bool_match(value: bool)

  • bool get_bool_match()

There is currently no description for this property. Please help us by contributing one!


float score_clamp_max = 0.0 🔗

  • void set_score_clamp_max(value: float)

  • float get_score_clamp_max()

There is currently no description for this property. Please help us by contributing one!


ScoreClampType score_clamp_max_type = 0 🔗

There is currently no description for this property. Please help us by contributing one!


float score_clamp_min = 0.0 🔗

  • void set_score_clamp_min(value: float)

  • float get_score_clamp_min()

There is currently no description for this property. Please help us by contributing one!


ScoreClampType score_clamp_min_type = 0 🔗

There is currently no description for this property. Please help us by contributing one!


Curve score_curve 🔗

  • void set_scoring_curve(value: Curve)

  • Curve get_scoring_curve()

There is currently no description for this property. Please help us by contributing one!


float score_factor = 1.0 🔗

  • void set_scoring_factor(value: float)

  • float get_scoring_factor()

There is currently no description for this property. Please help us by contributing one!


MultipleContextScoreOp score_multiple_context_score_operator = 0 🔗

There is currently no description for this property. Please help us by contributing one!


TestPurpose test_purpose = 0 🔗

What this test is for.


TestType test_type = 0 🔗

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void _perform_test(query_instance: QueryInstance2D) virtual required 🔗

Performs the test on this projection. It adds score or filters it out.


void end_test() 🔗

Ends the test. Sends signal to environment query to continue.