TestRaycastTo3D
Inherits: QueryTest3D < Node3D
A query test that casts a ray or shape from the QueryItem3D to a QueryContext3D, to check if it hits.
Description
A query test that casts a ray or shape from the QueryItem3D to a QueryContext3D, to check if it hits.
Properties
|
|
|
|
|
|
|
cost |
|
Array[ |
|
|
TestRaycastTo3D.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 QueryItem3D.
int collision_mask = 1 🔗
void set_collision_mask(value:
int)intget_collision_mask()
The physics layers this test will detect.
QueryContext3D context 🔗
void set_context(value: QueryContext3D)
QueryContext3D get_context()
The target QueryContext3D that will be detected.
Array[NodePath] exclusions = [] 🔗
What collision objects will be excluded from the test. Usually the querier should be excluded.
TestRaycastTo3D.RaycastMode raycast_mode = 0 🔗
void set_raycast_mode(value: TestRaycastTo3D.RaycastMode)
TestRaycastTo3D.RaycastMode get_raycast_mode()
What type of collision object this test will detect.
Shape3D shape 🔗
void set_shape(value:
Shape3D)Shape3Dget_shape()
The actual shape used by this test.
bool use_shape_cast = false 🔗
void set_use_shape_cast(value:
bool)boolget_use_shape_cast()
Use a Shape3D instead of a raycast.