QueryGenerator2D

Inherits: Node2D

Inherited By: GeneratorCircleShape2D, GeneratorComposite2D, GeneratorGridShape2D, GeneratorInArray2D, GeneratorInGroup2D

Generates potential positions or nodes which are then stored as QueryItem2Ds for testing.

Description

Generates potential positions or nodes which are then stored as QueryItem2Ds for testing.

Properties

RaycastMode

raycast_mode

0

Methods

Dictionary

cast_ray_projection(start_pos: Vector2, end_pos: Vector2, exclusions: Array, col_mask: int)


Signals

generator_finished() 🔗

Emitted when the generator has finished generating and testing all QueryItem3Ds. This notifies the EnvironmentQuery3D that it should return the results.


Enumerations

enum RaycastMode: 🔗

RaycastMode BODY = 0

Detects bodies, such as CharacterBody2D and RigidBody2D.

RaycastMode AREA = 1

Detects areas, such as Area2D.

RaycastMode BODY_AREA = 2

Detects both.


Property Descriptions

RaycastMode raycast_mode = 0 🔗

Determines what type of collisions the raycast will detect, usually used by projections.


Method Descriptions

Dictionary cast_ray_projection(start_pos: Vector2, end_pos: Vector2, exclusions: Array, col_mask: int) 🔗

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