mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-02-08 02:55:55 +01:00
Used `var variable := 0.0` as discussed in the Godot issue, instead of `var variable: = 0.0`. Mostly these are minor/cosmetic changes, but I've also reorganized the folder structure (naming of folders) to reflect our guidelines, plus made some minor changes to the demo codes. Still work in progress.
15 lines
279 B
GDScript
15 lines
279 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)
|