QueryGenerator3D

Inherits: Node3D

Inherited By: GeneratorCircleShape3D, GeneratorComposite3D, GeneratorGridShape3D, GeneratorInArray3D, GeneratorInGroup3D

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

Description

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

Properties

RaycastMode

raycast_mode

0

Methods

void

_perform_generation(query_instance: QueryInstance3D) virtual required

Dictionary

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

Array[Dictionary]

cast_shape_projection(start_pos: Vector3, end_pos: Vector3, exclusions: Array, shape: Shape3D, 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 CharacterBody3D and RigidBody3D.

RaycastMode AREA = 1

Detects areas, such as Area3D.

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

void _perform_generation(query_instance: QueryInstance3D) virtual required 🔗

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


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

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


Array[Dictionary] cast_shape_projection(start_pos: Vector3, end_pos: Vector3, exclusions: Array, shape: Shape3D, col_mask: int) 🔗

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