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:
|
2020-01-16 16:04:27 +01:00
|
|
|
var extents: Vector2 = $CollisionShape2D.shape.extents
|
2019-12-16 22:14:46 +01:00
|
|
|
rect = Rect2(-extents, extents*2)
|
|
|
|
|
|
|
|
|
|
|
|
func _draw() -> void:
|
|
|
|
draw_rect(rect, Color.yellowgreen)
|