RectCollisionTestingSetup
Summary
Section titled “Summary”Area2D setup for collision shape testing with rectangle shapes.
Constants
Section titled “Constants”const TRANSPARENCY_LEVEL = Color(1,1,1,0.1)
Properties
Section titled “Properties”shape_owner:Node2D
shapes:Array
[Shape2D]
area_2d:Area2D
- Testing area
collision_shape:CollisionShape2D
rect_shape: RectangleShape2D- Testing rect shape
test_area_name = “IndicatorSetupTestingArea”
Methods
Section titled “Methods”func _area_setup(
p_area_rect:Rect2
)
- Sets up area_2d and collision_shape
func _create_rect_shape(
p_rect_size:Vector2
)
-> RectangleShape2Dfunc free_nodes( )funcvalidate( ) ->Array
[
String
]
func toggle_debug(
p_show:bool
)
Source
Section titled “Source”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.