TestRaycastTo2D
Inherits: QueryTest2D < Node2D
A query test that casts a ray or shape from the QueryItem2D to a QueryContext2D, to check if it hits.
Description
A query test that casts a ray or shape from the QueryItem2D to a QueryContext2D, to check if it hits.
Properties
|
|
|
|
|
|
|
cost |
|
Array[ |
|
|
TestRaycastTo2D.RaycastMode |
|
|
|
||
test_type |
|
|
|
|
Property Descriptions
bool cast_from_context = false 🔗
void set_cast_from_context(value:
bool)boolget_cast_from_context()
On true, invert the casting and start from context into QueryItem2D.
int collision_mask = 1 🔗
void set_collision_mask(value:
int)intget_collision_mask()
The physics layers this test will detect.
QueryContext2D context 🔗
void set_context(value: QueryContext2D)
QueryContext2D get_context()
The target QueryContext2D that will be detected.
Array[NodePath] exclusions = [] 🔗
What collision objects will be excluded from the test. Usually the querier should be excluded.
TestRaycastTo2D.RaycastMode raycast_mode = 0 🔗
void set_raycast_mode(value: TestRaycastTo2D.RaycastMode)
TestRaycastTo2D.RaycastMode get_raycast_mode()
What type of collision object this test will detect.
Shape2D shape 🔗
void set_shape(value:
Shape2D)Shape2Dget_shape()
There is currently no description for this property. Please help us by contributing one!
bool use_shape_cast = false 🔗
void set_use_shape_cast(value:
bool)boolget_use_shape_cast()
There is currently no description for this property. Please help us by contributing one!