GeneratorGridShape3D

Inherits: QueryGenerator3D < Node3D

A query generator that generates a horizontal grid around each QueryContext3D.

Description

A query generator that generates a horizontal grid around each QueryContext3D.

Properties

QueryContext3D

generate_around

float

grid_half_size

20.0

float

post_projection_vertical_offset

0.5

float

project_down

100.0

float

project_up

100.0

int

projection_collision_mask

1

Shape3D

shape

float

space_between

5.0

bool

use_shape_cast

false

bool

use_vertical_projection

true


Property Descriptions

QueryContext3D generate_around 🔗

Reference QueryContext3D, where a grid will generate on each of these positions.


float grid_half_size = 20.0 🔗

  • void set_grid_half_size(value: float)

  • float get_grid_half_size()

The half the size of the grid, similar to radius.


float post_projection_vertical_offset = 0.5 🔗

  • void set_post_projection_vertical_offset(value: float)

  • float get_post_projection_vertical_offset()

Offset the position of the QueryItem3D vertically by this amount after projecting it. Useful to avoid accidental collisions when doing visibility tests.


float project_down = 100.0 🔗

  • void set_project_down(value: float)

  • float get_project_down()

Height where the raycast search will end.


float project_up = 100.0 🔗

  • void set_project_up(value: float)

  • float get_project_up()

Height where the raycast search will start.


int projection_collision_mask = 1 🔗

  • void set_projection_collision_mask(value: int)

  • int get_projection_collision_mask()

The physics layers this projection scans.


Shape3D shape 🔗

  • void set_shape(value: Shape3D)

  • Shape3D get_shape()

Shape of the projection.


float space_between = 5.0 🔗

  • void set_space_between(value: float)

  • float get_space_between()

The space between each point in the grid.


bool use_shape_cast = false 🔗

  • void set_use_shape_cast(value: bool)

  • bool get_use_shape_cast()

Use a Shape3D instead of a raycast.


bool use_vertical_projection = true 🔗

  • void set_use_vertical_projection(value: bool)

  • bool get_use_vertical_projection()

If true, casts ray onto the ground to position the QueryItem3Ds.