GeneratorCircleShape2D

Inherits: QueryGenerator2D < Node2D

A query generator that generates a circle around each QueryContext2D.

Description

A query generator that generates a circle around each QueryContext2D.

Properties

float

arc_angle

360.0

int

cast_collision_mask

1

QueryContext2D

circle_center

float

circle_radius

200.0

float

space_between

20.0

bool

use_arc_direction

false

bool

use_casting

true


Property Descriptions

float arc_angle = 360.0 🔗

  • void set_arc_angle(value: float)

  • float get_arc_angle()

Sets the angle of the arc in degrees.


int cast_collision_mask = 1 🔗

  • void set_cast_collision_mask(value: int)

  • int get_cast_collision_mask()

The physics layers the hotizontal casting scans


QueryContext2D circle_center 🔗

Reference QueryContext2D, where a circle will generate on each of these positions.


float circle_radius = 200.0 🔗

  • void set_circle_radius(value: float)

  • float get_circle_radius()

Radius of the circle that expands from circle_center.


float space_between = 20.0 🔗

  • void set_space_between(value: float)

  • float get_space_between()

The space between each point around the circle.


bool use_arc_direction = false 🔗

  • void set_use_arc_direction(value: bool)

  • bool get_use_arc_direction()

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


bool use_casting = true 🔗

  • void set_use_casting(value: bool)

  • bool get_use_casting()

Cast rays or shapes outwards from each context and align the QueryItem2D on it. Useful for detecting walls.