fix a stupid thing

This commit is contained in:
megamichi 2025-03-01 21:11:57 +01:00
parent 4d48ced249
commit c7f8d95512

View file

@ -19,7 +19,7 @@ func _process(delta):
var angle = parent.global_position.angle_to_point(get_global_mouse_position())
global_position.x = parent.global_position.x + cos(angle)*maxLength
global_position.y = parent.global_position.y + sin(angle)*maxLength
calculateVector()
calculateVector()
else:
global_position = lerp(global_position, parent.global_position, delta*50)
parent.posVector = Vector2(0,0)