godot-steering-ai-framework/project/demos/arrive/Target.gd
2020-01-12 10:18:29 -05:00

15 lines
222 B
GDScript

extends Node2D
var target: = Vector2.ZERO
func _draw() -> void:
draw_circle(target, 20, Color(1, 1, 0, 0.25))
draw_circle(target, 5, Color.yellow)
func draw(location: Vector2) -> void:
target = location
update()