fix a stupid thing
This commit is contained in:
parent
4d48ced249
commit
c7f8d95512
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ func _process(delta):
|
||||||
var angle = parent.global_position.angle_to_point(get_global_mouse_position())
|
var angle = parent.global_position.angle_to_point(get_global_mouse_position())
|
||||||
global_position.x = parent.global_position.x + cos(angle)*maxLength
|
global_position.x = parent.global_position.x + cos(angle)*maxLength
|
||||||
global_position.y = parent.global_position.y + sin(angle)*maxLength
|
global_position.y = parent.global_position.y + sin(angle)*maxLength
|
||||||
calculateVector()
|
calculateVector()
|
||||||
else:
|
else:
|
||||||
global_position = lerp(global_position, parent.global_position, delta*50)
|
global_position = lerp(global_position, parent.global_position, delta*50)
|
||||||
parent.posVector = Vector2(0,0)
|
parent.posVector = Vector2(0,0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue