7 lines
157 B
GDScript
7 lines
157 B
GDScript
extends Line2D
|
|
|
|
|
|
func _physics_process(_delta):
|
|
var parent = get_parent()
|
|
$Motion.points[1].x = parent.motion.x/4
|
|
$Motion.points[1].y = parent.motion.y/4
|