mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-24 05:37:15 +01:00
8fb4f4c51a
The use of multiline blocks in GDSCript for comments leaves them in the final compiled file, increasing size and potentially processing for no end-user gain.
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)
|