Skip to content

RectCollisionTestingSetup

Area2D setup for collision shape testing with rectangle shapes.

const TRANSPARENCY_LEVEL = Color(1,1,1,0.1)

shape_owner:

Node2D

shapes:

Array

[Shape2D]

area_2d:

Area2D

Testing area
collision_shape:

CollisionShape2D

rect_shape: RectangleShape2D
Testing rect shape

test_area_name = “IndicatorSetupTestingArea”

func _area_setup

(

p_area_rect:

Rect2

)

Sets up area_2d and collision_shape
func _create_rect_shape

(

p_rect_size:

Vector2

)

-> RectangleShape2D
func free_nodes( )
funcvalidate( ) ->

Array

[

String

]

func toggle_debug

(

p_show:

bool

)

addons/grid_building/placement/collsion_test/rect_collision_testing_setup.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.