TestDistanceTo2D

Inherits: QueryTest2D < Node2D

A query test that checks the distance from QueryItem2D to a QueryContext2D.

Description

A query test that checks the distance from QueryItem2D to a QueryContext2D.

Properties

float

cost

1.29 (overrides QueryTest2D)

QueryContext2D

distance_to

float

filter_max

50.0 (overrides QueryTest2D)

float

score_clamp_max

200.0 (overrides QueryTest2D)


Property Descriptions

QueryContext2D distance_to 🔗

What context the test will use for the checking the distance. If it's more than one location, then the results are averaged.