reword FIXME
This commit is contained in:
parent
347abe64bf
commit
7844cad018
@ -40,7 +40,7 @@ func _process(_delta: float) -> void:
|
|||||||
func _physics_process(_delta):
|
func _physics_process(_delta):
|
||||||
velocity = position.direction_to(target) * speed
|
velocity = position.direction_to(target) * speed
|
||||||
# look_at(target)
|
# look_at(target)
|
||||||
# FIXME want enemy to stop only when touching something, to stop vibrating
|
# FIXME want enemy to stop when touching something, to prevent vibrating
|
||||||
if position.distance_to(target) > 10 and get_slide_collision_count() == prevCollisions:
|
if position.distance_to(target) > 10 and get_slide_collision_count() == prevCollisions:
|
||||||
move_and_slide()
|
move_and_slide()
|
||||||
prevCollisions = get_slide_collision_count()
|
prevCollisions = get_slide_collision_count()
|
||||||
|
Loading…
Reference in New Issue
Block a user