godot-steering-ai-framework/project/demos/seek_and_flee/Boundary.gd
Francois Belair fb538b72cb Reorganize project
The GST namespace has been added to prevent class name conflicts, and
the project has been reorganized to make extensions and purpose easier.
2020-01-12 10:16:37 -05:00

17 lines
285 B
GDScript

extends StaticBody2D
"""
Draws the bounding box of the static body wall.
"""
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)