RectCollisionTestingSetup

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Area2D setup for collision shape testing with rectangle shapes.

Source File: addons/grid_building/placement/collsion_test/rect_collision_testing_setup.gd

Extends: RefCounted

Properties

  • Property: shape_owner: Node2D
  • Property: shapes : Array[Shape2D]
  • Property: area_2d: Area2D - Testing area
  • Property: collision_shape: CollisionShape2D
  • Property: rect_shape: RectangleShape2D - Testing rect shape
  • Property: test_area_name = "IndicatorSetupTestingArea"

Private Properties

  • Property: _debug_area_colors = [ (private)
  • Property: _debug_mode = true # Used in development to show shapes. (private)

Constants

  • Constant: TRANSPARENCY_LEVEL = Color(1,1,1,0.1)

Public Methods

free_nodes

1
free_nodes()

validate

1
validate() -> Array[String]

toggle_debug

1
toggle_debug(p_show : bool)

Private Methods

_area_setup

1
_area_setup(p_area_rect : Rect2)

Flags: private

Sets up area_2d and collision_shape


_create_rect_shape

1
_create_rect_shape(p_rect_size: Vector2) -> RectangleShape2D

Flags: private