7 lines
155 B
GDScript3
7 lines
155 B
GDScript3
|
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
|