diff --git a/stick/Knob.gd b/stick/Knob.gd index 68ace23..dfddd14 100644 --- a/stick/Knob.gd +++ b/stick/Knob.gd @@ -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)