9 lines
200 B
GDScript
9 lines
200 B
GDScript
@tool
|
|
extends Line2D
|
|
|
|
@export var p1 : Node2D
|
|
@export var p2 : Node2D
|
|
|
|
func _physics_process(delta: float) -> void:
|
|
points[0] = to_local(p1.global_position)
|
|
points[1] = to_local(p2.global_position)
|