TestIntersectsArea2D

Inherits: QueryTest2D < Node2D

A query test that checks if QueryContext2D is intersecting an area using Shape2D.

Description

A query test that checks if QueryContext2D is intersecting an area using Shape2D.

Properties

int

collision_mask

1

QueryContext2D

context

float

cost

0.98 (overrides QueryTest2D)

Shape2D

shape

TestIntersectsArea2D.ShapeCastMode

shape_cast_mode

0

TestType

test_type

1 (overrides QueryTest2D)


Property Descriptions

int collision_mask = 1 🔗

  • void set_collision_mask(value: int)

  • int get_collision_mask()

The physics layers this test scans.


QueryContext2D context 🔗

The context to be tested.


Shape2D shape 🔗

  • void set_shape(value: Shape2D)

  • Shape2D get_shape()

The actual shape that will be used in the PhysicsShapeQueryParameters2D.


TestIntersectsArea2D.ShapeCastMode shape_cast_mode = 0 🔗

  • void set_shape_cast_mode(value: TestIntersectsArea2D.ShapeCastMode)

  • TestIntersectsArea2D.ShapeCastMode get_shape_cast_mode()

What types of collision objects the test will scan.