mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-28 09:47:16 +01:00
1f44bace3e
- simplify code when possible - add a simple info panel - adhere to the "new" gdscript guidelines
15 lines
265 B
GDScript
15 lines
265 B
GDScript
extends StaticBody2D
|
|
# Draws the bounding box of the static body wall.
|
|
|
|
|
|
var rect: Rect2
|
|
|
|
|
|
func _ready() -> void:
|
|
var extents: Vector2 = $CollisionShape2D.shape.extents
|
|
rect = Rect2(-extents, extents*2)
|
|
|
|
|
|
func _draw() -> void:
|
|
draw_rect(rect, Color.yellowgreen)
|