2019-12-16 22:14:46 +01:00
|
|
|
extends StaticBody2D
|
2020-01-02 23:42:41 +01:00
|
|
|
# Draws the bounding box of the static body wall.
|
2019-12-16 22:14:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
var rect: Rect2
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
var extents: = ($CollisionShape2D.shape as RectangleShape2D).extents
|
|
|
|
rect = Rect2(-extents, extents*2)
|
|
|
|
|
|
|
|
|
|
|
|
func _draw() -> void:
|
|
|
|
draw_rect(rect, Color.yellowgreen)
|